diff options
Diffstat (limited to 'drivers/scsi/scsi_lib.c')
-rw-r--r-- | drivers/scsi/scsi_lib.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c index 619d3fb7a2f0..d18da21c9c57 100644 --- a/drivers/scsi/scsi_lib.c +++ b/drivers/scsi/scsi_lib.c | |||
@@ -358,9 +358,9 @@ void scsi_device_unbusy(struct scsi_device *sdev) | |||
358 | shost->host_failed)) | 358 | shost->host_failed)) |
359 | scsi_eh_wakeup(shost); | 359 | scsi_eh_wakeup(shost); |
360 | spin_unlock(shost->host_lock); | 360 | spin_unlock(shost->host_lock); |
361 | spin_lock(&sdev->sdev_lock); | 361 | spin_lock(sdev->request_queue->queue_lock); |
362 | sdev->device_busy--; | 362 | sdev->device_busy--; |
363 | spin_unlock_irqrestore(&sdev->sdev_lock, flags); | 363 | spin_unlock_irqrestore(sdev->request_queue->queue_lock, flags); |
364 | } | 364 | } |
365 | 365 | ||
366 | /* | 366 | /* |
@@ -1423,7 +1423,7 @@ struct request_queue *scsi_alloc_queue(struct scsi_device *sdev) | |||
1423 | struct Scsi_Host *shost = sdev->host; | 1423 | struct Scsi_Host *shost = sdev->host; |
1424 | struct request_queue *q; | 1424 | struct request_queue *q; |
1425 | 1425 | ||
1426 | q = blk_init_queue(scsi_request_fn, &sdev->sdev_lock); | 1426 | q = blk_init_queue(scsi_request_fn, NULL); |
1427 | if (!q) | 1427 | if (!q) |
1428 | return NULL; | 1428 | return NULL; |
1429 | 1429 | ||