diff options
author | Martin K. Petersen <martin.petersen@oracle.com> | 2010-02-26 00:20:39 -0500 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2010-02-26 07:58:08 -0500 |
commit | 8a78362c4eefc1deddbefe2c7f38aabbc2429d6b (patch) | |
tree | c095d95af1aec0f9cee5975b1dcdc6bc1d17d401 /drivers/block/cciss.c | |
parent | 086fa5ff0854c676ec333760f4c0154b3b242616 (diff) |
block: Consolidate phys_segment and hw_segment limits
Except for SCSI no device drivers distinguish between physical and
hardware segment limits. Consolidate the two into a single segment
limit.
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'drivers/block/cciss.c')
-rw-r--r-- | drivers/block/cciss.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/block/cciss.c b/drivers/block/cciss.c index 030e52d72254..a29e69418a03 100644 --- a/drivers/block/cciss.c +++ b/drivers/block/cciss.c | |||
@@ -1797,10 +1797,7 @@ static int cciss_add_disk(ctlr_info_t *h, struct gendisk *disk, | |||
1797 | blk_queue_bounce_limit(disk->queue, h->pdev->dma_mask); | 1797 | blk_queue_bounce_limit(disk->queue, h->pdev->dma_mask); |
1798 | 1798 | ||
1799 | /* This is a hardware imposed limit. */ | 1799 | /* This is a hardware imposed limit. */ |
1800 | blk_queue_max_hw_segments(disk->queue, h->maxsgentries); | 1800 | blk_queue_max_segments(disk->queue, h->maxsgentries); |
1801 | |||
1802 | /* This is a limit in the driver and could be eliminated. */ | ||
1803 | blk_queue_max_phys_segments(disk->queue, h->maxsgentries); | ||
1804 | 1801 | ||
1805 | blk_queue_max_hw_sectors(disk->queue, h->cciss_max_sectors); | 1802 | blk_queue_max_hw_sectors(disk->queue, h->cciss_max_sectors); |
1806 | 1803 | ||