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>
Этот коммит содержится в:
Martin K. Petersen
2010-02-26 00:20:39 -05:00
коммит произвёл Jens Axboe
родитель 086fa5ff08
Коммит 8a78362c4e
35 изменённых файлов: 70 добавлений и 136 удалений

Просмотреть файл

@@ -790,8 +790,7 @@ static int ide_init_queue(ide_drive_t *drive)
max_sg_entries >>= 1;
#endif /* CONFIG_PCI */
blk_queue_max_hw_segments(q, max_sg_entries);
blk_queue_max_phys_segments(q, max_sg_entries);
blk_queue_max_segments(q, max_sg_entries);
/* assign drive queue */
drive->queue = q;