diff options
author | Damien Le Moal <damien.lemoal@wdc.com> | 2020-11-20 04:55:18 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-12-08 03:36:04 +0300 |
commit | ea17fd354ca8afd3e8962a77236b1a9a59262fdd (patch) | |
tree | 57a404139c3d0ac980df9ce1af2cf5c85064ddf5 /drivers/block/null_blk/main.c | |
parent | 0ec4d913ac69ec86757eec117fc2733018552aa7 (diff) | |
download | linux-ea17fd354ca8afd3e8962a77236b1a9a59262fdd.tar.xz |
null_blk: Allow controlling max_hw_sectors limit
Add the module option and configfs attribute max_sectors to allow
configuring the maximum size of a command issued to a null_blk device.
This allows exercising the block layer BIO splitting with different
limits than the default BLK_SAFE_MAX_SECTORS. This is also useful for
testing the zone append write path of file systems as the max_hw_sectors
limit value is also used for the max_zone_append_sectors limit.
Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block/null_blk/main.c')
0 files changed, 0 insertions, 0 deletions