diff options
Diffstat (limited to 'drivers/scsi/scsi_lib.c')
-rw-r--r-- | drivers/scsi/scsi_lib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c index 199b02452259..b0c59ae63a2f 100644 --- a/drivers/scsi/scsi_lib.c +++ b/drivers/scsi/scsi_lib.c | |||
@@ -526,7 +526,7 @@ static void scsi_run_queue(struct request_queue *q) | |||
526 | struct Scsi_Host *shost = sdev->host; | 526 | struct Scsi_Host *shost = sdev->host; |
527 | unsigned long flags; | 527 | unsigned long flags; |
528 | 528 | ||
529 | if (sdev->single_lun) | 529 | if (scsi_target(sdev)->single_lun) |
530 | scsi_single_lun_run(sdev); | 530 | scsi_single_lun_run(sdev); |
531 | 531 | ||
532 | spin_lock_irqsave(shost->host_lock, flags); | 532 | spin_lock_irqsave(shost->host_lock, flags); |
@@ -1559,7 +1559,7 @@ static void scsi_request_fn(struct request_queue *q) | |||
1559 | 1559 | ||
1560 | if (!scsi_host_queue_ready(q, shost, sdev)) | 1560 | if (!scsi_host_queue_ready(q, shost, sdev)) |
1561 | goto not_ready; | 1561 | goto not_ready; |
1562 | if (sdev->single_lun) { | 1562 | if (scsi_target(sdev)->single_lun) { |
1563 | if (scsi_target(sdev)->starget_sdev_user && | 1563 | if (scsi_target(sdev)->starget_sdev_user && |
1564 | scsi_target(sdev)->starget_sdev_user != sdev) | 1564 | scsi_target(sdev)->starget_sdev_user != sdev) |
1565 | goto not_ready; | 1565 | goto not_ready; |