aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/scsi_lib.c
diff options
context:
space:
mode:
authorJeremy Erickson <jerickso@cs.unc.edu>2014-04-18 17:06:00 -0400
committerJeremy Erickson <jerickso@cs.unc.edu>2014-04-18 17:06:00 -0400
commita215aa7b9ab3759c047201199fba64d3042d7f13 (patch)
treebca37493d9b2233450e6d3ffced1261d0e4f71fe /drivers/scsi/scsi_lib.c
parentd31199a77ef606f1d06894385f1852181ba6136b (diff)
Update 2.6.36 to 2.6.36.4wip-dissipation2-jerickso
Diffstat (limited to 'drivers/scsi/scsi_lib.c')
-rw-r--r--drivers/scsi/scsi_lib.c6
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);