summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/libata-core.c
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@pobox.com>2005-10-30 23:31:48 -0500
committerJeff Garzik <jgarzik@pobox.com>2005-10-30 23:31:48 -0500
commit005a5a06a6dd13a0ca3f2c6a0218e8d94ed36d8a (patch)
tree5b270817df4bc9661365d789d51c04f3774c3ddd /drivers/scsi/libata-core.c
parente533825447dcb60a82b7cc9d73d06423c849b9a2 (diff)
downloadop-kernel-dev-005a5a06a6dd13a0ca3f2c6a0218e8d94ed36d8a.zip
op-kernel-dev-005a5a06a6dd13a0ca3f2c6a0218e8d94ed36d8a.tar.gz
[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.
Diffstat (limited to 'drivers/scsi/libata-core.c')
-rw-r--r--drivers/scsi/libata-core.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/scsi/libata-core.c b/drivers/scsi/libata-core.c
index a17e120..ff18fa7 100644
--- a/drivers/scsi/libata-core.c
+++ b/drivers/scsi/libata-core.c
@@ -4089,8 +4089,6 @@ static void ata_host_init(struct ata_port *ap, struct Scsi_Host *host,
host->unique_id = ata_unique_id++;
host->max_cmd_len = 12;
- scsi_assign_lock(host, &host_set->lock);
-
ap->flags = ATA_FLAG_PORT_DISABLED;
ap->id = host->unique_id;
ap->host = host;
OpenPOWER on IntegriCloud