block: add notion of a chunk size for request merging
authorJens Axboe <axboe@fb.com>
Wed, 25 Jun 2014 20:43:21 +0000 (14:43 -0600)
committerJens Axboe <axboe@fb.com>
Mon, 30 Mar 2015 18:54:51 +0000 (12:54 -0600)
commit5186db079424c9fc3b7629410cfb838556069ad7
treed65b3067a978b644c8508ea6ef9d63cfe8754537
parentf6fee65242edfbd7afb7671a22b7b9a3fca2feba
block: add notion of a chunk size for request merging

Some drivers have different limits on what size a request should
optimally be, depending on the offset of the request. Similar to
dividing a device into chunks. Add a setting that allows the driver
to inform the block layer of such a chunk size. The block layer will
then prevent merging across the chunks.

This is needed to optimally support NVMe with a non-zero stripe size.

Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-settings.c
fs/bio.c
include/linux/blkdev.h