aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/scsi_lib.c
diff options
context:
space:
mode:
authorLachlan McIlroy <lachlan@redback.melbourne.sgi.com>2008-02-17 21:51:42 -0500
committerLachlan McIlroy <lachlan@redback.melbourne.sgi.com>2008-02-17 21:51:42 -0500
commitc58310bf4933986513020fa90b4190c7492995ae (patch)
tree143f2c7578d02ebef5db8fc57ae69e951ae0e2ee /drivers/scsi/scsi_lib.c
parent269cdfaf769f5cd831284cc831790c7c5038040f (diff)
parent1309d4e68497184d2fd87e892ddf14076c2bda98 (diff)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6 into for-linus
Diffstat (limited to 'drivers/scsi/scsi_lib.c')
-rw-r--r--drivers/scsi/scsi_lib.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c
index b12fb310e399..135c1d054701 100644
--- a/drivers/scsi/scsi_lib.c
+++ b/drivers/scsi/scsi_lib.c
@@ -301,7 +301,6 @@ static int scsi_req_map_sg(struct request *rq, struct scatterlist *sgl,
301 page = sg_page(sg); 301 page = sg_page(sg);
302 off = sg->offset; 302 off = sg->offset;
303 len = sg->length; 303 len = sg->length;
304 data_len += len;
305 304
306 while (len > 0 && data_len > 0) { 305 while (len > 0 && data_len > 0) {
307 /* 306 /*
@@ -1569,6 +1568,7 @@ struct request_queue *__scsi_alloc_queue(struct Scsi_Host *shost,
1569 request_fn_proc *request_fn) 1568 request_fn_proc *request_fn)
1570{ 1569{
1571 struct request_queue *q; 1570 struct request_queue *q;
1571 struct device *dev = shost->shost_gendev.parent;
1572 1572
1573 q = blk_init_queue(request_fn, NULL); 1573 q = blk_init_queue(request_fn, NULL);
1574 if (!q) 1574 if (!q)
@@ -1583,6 +1583,9 @@ struct request_queue *__scsi_alloc_queue(struct Scsi_Host *shost,
1583 blk_queue_max_sectors(q, shost->max_sectors); 1583 blk_queue_max_sectors(q, shost->max_sectors);
1584 blk_queue_bounce_limit(q, scsi_calculate_bounce_limit(shost)); 1584 blk_queue_bounce_limit(q, scsi_calculate_bounce_limit(shost));
1585 blk_queue_segment_boundary(q, shost->dma_boundary); 1585 blk_queue_segment_boundary(q, shost->dma_boundary);
1586 dma_set_seg_boundary(dev, shost->dma_boundary);
1587
1588 blk_queue_max_segment_size(q, dma_get_max_seg_size(dev));
1586 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);