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 ee02d3838a0a..5bff8a2396e4 100644 --- a/drivers/scsi/scsi_lib.c +++ b/drivers/scsi/scsi_lib.c | |||
@@ -1632,9 +1632,8 @@ struct request_queue *__scsi_alloc_queue(struct Scsi_Host *shost, | |||
1632 | 1632 | ||
1633 | blk_queue_max_segment_size(q, dma_get_max_seg_size(dev)); | 1633 | blk_queue_max_segment_size(q, dma_get_max_seg_size(dev)); |
1634 | 1634 | ||
1635 | /* New queue, no concurrency on queue_flags */ | ||
1636 | if (!shost->use_clustering) | 1635 | if (!shost->use_clustering) |
1637 | queue_flag_clear_unlocked(QUEUE_FLAG_CLUSTER, q); | 1636 | q->limits.cluster = 0; |
1638 | 1637 | ||
1639 | /* | 1638 | /* |
1640 | * set a reasonable default alignment on word boundaries: the | 1639 | * set a reasonable default alignment on word boundaries: the |
@@ -2428,7 +2427,8 @@ scsi_internal_device_unblock(struct scsi_device *sdev) | |||
2428 | sdev->sdev_state = SDEV_RUNNING; | 2427 | sdev->sdev_state = SDEV_RUNNING; |
2429 | else if (sdev->sdev_state == SDEV_CREATED_BLOCK) | 2428 | else if (sdev->sdev_state == SDEV_CREATED_BLOCK) |
2430 | sdev->sdev_state = SDEV_CREATED; | 2429 | sdev->sdev_state = SDEV_CREATED; |
2431 | else | 2430 | else if (sdev->sdev_state != SDEV_CANCEL && |
2431 | sdev->sdev_state != SDEV_OFFLINE) | ||
2432 | return -EINVAL; | 2432 | return -EINVAL; |
2433 | 2433 | ||
2434 | spin_lock_irqsave(q->queue_lock, flags); | 2434 | spin_lock_irqsave(q->queue_lock, flags); |