]> git.baikalelectronics.ru Git - kernel.git/commit
block: add notion of a chunk size for request merging
authorJens Axboe <axboe@fb.com>
Thu, 5 Jun 2014 19:38:39 +0000 (13:38 -0600)
committerJens Axboe <axboe@fb.com>
Thu, 5 Jun 2014 19:38:39 +0000 (13:38 -0600)
commit551dea29121be8d963d09c740872b153c307fc77
tree9ec3fe551583dcb9243d02a9728511e99216dcdc
parent7ee67548f5a1c062be35530508b7c2370daf880a
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/bio.c
block/blk-settings.c
include/linux/blkdev.h