The purpose of the chunk_sectors limit is to ensure that a mergeble requestReviewed-by: Hannes Reinecke <hare@xxxxxxx>
fits within the boundary of the chunck_sector value.
Such a feature will be useful for other request_queue boundary limits, so
generalize the chunk_sectors merge code.
This idea was proposed by Hannes Reinecke.
Reviewed-by: Martin K. Petersen <martin.petersen@xxxxxxxxxx>
Signed-off-by: John Garry <john.g.garry@xxxxxxxxxx>
---
block/blk-merge.c | 20 ++++++++++++++------
drivers/md/dm.c | 2 +-
include/linux/blkdev.h | 13 +++++++------
3 files changed, 22 insertions(+), 13 deletions(-)