scsi_lib.c (086fa5ff0854c676ec333760f4c0154b3b242616) | scsi_lib.c (8a78362c4eefc1deddbefe2c7f38aabbc2429d6b) |
---|---|
1/* 2 * scsi_lib.c Copyright (C) 1999 Eric Youngdale 3 * 4 * SCSI queueing library. 5 * Initial versions: Eric Youngdale (eric@andante.org). 6 * Based upon conversations with large numbers 7 * of people at Linux Expo. 8 */ --- 1610 unchanged lines hidden (view full) --- 1619 1620 q = blk_init_queue(request_fn, NULL); 1621 if (!q) 1622 return NULL; 1623 1624 /* 1625 * this limit is imposed by hardware restrictions 1626 */ | 1/* 2 * scsi_lib.c Copyright (C) 1999 Eric Youngdale 3 * 4 * SCSI queueing library. 5 * Initial versions: Eric Youngdale (eric@andante.org). 6 * Based upon conversations with large numbers 7 * of people at Linux Expo. 8 */ --- 1610 unchanged lines hidden (view full) --- 1619 1620 q = blk_init_queue(request_fn, NULL); 1621 if (!q) 1622 return NULL; 1623 1624 /* 1625 * this limit is imposed by hardware restrictions 1626 */ |
1627 blk_queue_max_hw_segments(q, shost->sg_tablesize); 1628 blk_queue_max_phys_segments(q, SCSI_MAX_SG_CHAIN_SEGMENTS); | 1627 blk_queue_max_segments(q, min_t(unsigned short, shost->sg_tablesize, 1628 SCSI_MAX_SG_CHAIN_SEGMENTS)); |
1629 1630 blk_queue_max_hw_sectors(q, shost->max_sectors); 1631 blk_queue_bounce_limit(q, scsi_calculate_bounce_limit(shost)); 1632 blk_queue_segment_boundary(q, shost->dma_boundary); 1633 dma_set_seg_boundary(dev, shost->dma_boundary); 1634 1635 blk_queue_max_segment_size(q, dma_get_max_seg_size(dev)); 1636 --- 918 unchanged lines hidden --- | 1629 1630 blk_queue_max_hw_sectors(q, shost->max_sectors); 1631 blk_queue_bounce_limit(q, scsi_calculate_bounce_limit(shost)); 1632 blk_queue_segment_boundary(q, shost->dma_boundary); 1633 dma_set_seg_boundary(dev, shost->dma_boundary); 1634 1635 blk_queue_max_segment_size(q, dma_get_max_seg_size(dev)); 1636 --- 918 unchanged lines hidden --- |