aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/scsi/scsi_lib.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c
index b12fb310e399..68e424f09acb 100644
--- a/drivers/scsi/scsi_lib.c
+++ b/drivers/scsi/scsi_lib.c
@@ -1569,6 +1569,7 @@ struct request_queue *__scsi_alloc_queue(struct Scsi_Host *shost,
1569 request_fn_proc *request_fn) 1569 request_fn_proc *request_fn)
1570{ 1570{
1571 struct request_queue *q; 1571 struct request_queue *q;
1572 struct device *dev = shost->shost_gendev.parent;
1572 1573
1573 q = blk_init_queue(request_fn, NULL); 1574 q = blk_init_queue(request_fn, NULL);
1574 if (!q) 1575 if (!q)
@@ -1584,6 +1585,8 @@ struct request_queue *__scsi_alloc_queue(struct Scsi_Host *shost,
1584 blk_queue_bounce_limit(q, scsi_calculate_bounce_limit(shost)); 1585 blk_queue_bounce_limit(q, scsi_calculate_bounce_limit(shost));
1585 blk_queue_segment_boundary(q, shost->dma_boundary); 1586 blk_queue_segment_boundary(q, shost->dma_boundary);
1586 1587
1588 blk_queue_max_segment_size(q, dma_get_max_seg_size(dev));
1589
1587 if (!shost->use_clustering) 1590 if (!shost->use_clustering)
1588 clear_bit(QUEUE_FLAG_CLUSTER, &q->queue_flags); 1591 clear_bit(QUEUE_FLAG_CLUSTER, &q->queue_flags);
1589 1592