diff options
author | Arjan van de Ven <arjan@infradead.org> | 2006-01-11 07:16:10 -0500 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.(none)> | 2006-01-12 12:53:11 -0500 |
commit | 0b9506723826c68b50fa33e345700ddcac1bed36 (patch) | |
tree | da3e432ef4517c47ebdc088c6322d0ac51193127 /drivers/scsi/scsi_sysfs.c | |
parent | dacee84b070c4e705a5b6446f1f0a6a6e2f8d7a4 (diff) |
[SCSI] turn most scsi semaphores into mutexes
the scsi layer is using semaphores in a mutex way, this patch converts
these into using mutexes instead
Signed-off-by: Arjan van de Ven <arjan@infradead.org>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/scsi_sysfs.c')
-rw-r--r-- | drivers/scsi/scsi_sysfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/scsi_sysfs.c b/drivers/scsi/scsi_sysfs.c index ea7f3a433572..2cb962751a7e 100644 --- a/drivers/scsi/scsi_sysfs.c +++ b/drivers/scsi/scsi_sysfs.c | |||
@@ -745,9 +745,9 @@ void scsi_remove_device(struct scsi_device *sdev) | |||
745 | { | 745 | { |
746 | struct Scsi_Host *shost = sdev->host; | 746 | struct Scsi_Host *shost = sdev->host; |
747 | 747 | ||
748 | down(&shost->scan_mutex); | 748 | mutex_lock(&shost->scan_mutex); |
749 | __scsi_remove_device(sdev); | 749 | __scsi_remove_device(sdev); |
750 | up(&shost->scan_mutex); | 750 | mutex_unlock(&shost->scan_mutex); |
751 | } | 751 | } |
752 | EXPORT_SYMBOL(scsi_remove_device); | 752 | EXPORT_SYMBOL(scsi_remove_device); |
753 | 753 | ||