scsi_lib.c (64b9fb5704a479d98a59f2a1d45d3331a8f847f8) scsi_lib.c (086fa5ff0854c676ec333760f4c0154b3b242616)
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 */

--- 1613 unchanged lines hidden (view full) ---

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);
1629
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 */

--- 1613 unchanged lines hidden (view full) ---

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);
1629
1630 blk_queue_max_sectors(q, shost->max_sectors);
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
1637 /* New queue, no concurrency on queue_flags */
1638 if (!shost->use_clustering)

--- 916 unchanged lines hidden ---
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
1637 /* New queue, no concurrency on queue_flags */
1638 if (!shost->use_clustering)

--- 916 unchanged lines hidden ---