]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
[libata] locking rewrite (== fix)
authorJeff Garzik <jgarzik@pobox.com>
Mon, 31 Oct 2005 04:31:48 +0000 (23:31 -0500)
committerJeff Garzik <jgarzik@pobox.com>
Mon, 31 Oct 2005 04:31:48 +0000 (23:31 -0500)
commit005a5a06a6dd13a0ca3f2c6a0218e8d94ed36d8a
tree5b270817df4bc9661365d789d51c04f3774c3ddd
parente533825447dcb60a82b7cc9d73d06423c849b9a2
[libata] locking rewrite (== fix)

A lot of power packed into a little patch.

This change eliminates the sharing between our controller-wide spinlock
and the SCSI core's Scsi_Host lock.  As the locking in libata was
already highly compartmentalized, always referencing our own lock, and
never scsi_host::host_lock.

As a side effect, this change eliminates a deadlock from calling
scsi_finish_command() while inside our spinlock.
drivers/scsi/libata-core.c
drivers/scsi/libata-scsi.c