diff options
Diffstat (limited to 'drivers/scsi/scsi_sysfs.c')
-rw-r--r-- | drivers/scsi/scsi_sysfs.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/scsi/scsi_sysfs.c b/drivers/scsi/scsi_sysfs.c index b8052d5206cc..83f87c41b18d 100644 --- a/drivers/scsi/scsi_sysfs.c +++ b/drivers/scsi/scsi_sysfs.c | |||
@@ -707,9 +707,11 @@ void __scsi_remove_device(struct scsi_device *sdev) | |||
707 | **/ | 707 | **/ |
708 | void scsi_remove_device(struct scsi_device *sdev) | 708 | void scsi_remove_device(struct scsi_device *sdev) |
709 | { | 709 | { |
710 | down(&sdev->host->scan_mutex); | 710 | struct Scsi_Host *shost = sdev->host; |
711 | |||
712 | down(&shost->scan_mutex); | ||
711 | __scsi_remove_device(sdev); | 713 | __scsi_remove_device(sdev); |
712 | up(&sdev->host->scan_mutex); | 714 | up(&shost->scan_mutex); |
713 | } | 715 | } |
714 | EXPORT_SYMBOL(scsi_remove_device); | 716 | EXPORT_SYMBOL(scsi_remove_device); |
715 | 717 | ||