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>
Этот коммит содержится в:

коммит произвёл
Jens Axboe

родитель
086fa5ff08
Коммит
8a78362c4e
@@ -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;
|
||||
|
Ссылка в новой задаче
Block a user