null_blk: add zone support
authorMatias Bjørling <matias.bjorling@wdc.com>
Fri, 6 Jul 2018 17:38:39 +0000 (19:38 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 9 Jul 2018 15:07:55 +0000 (09:07 -0600)
commitca4b2a011948fae4e4d31490107db4926385a983
tree4fb64aaae7642ec180fae7d9afd16ccd2c09b881
parent6dad38d38f20c0c8a84b5ae4f23c62b2c8758ec5
null_blk: add zone support

Adds support for exposing a null_blk device through the zone device
interface.

The interface is managed with the parameters zoned and zone_size.
If zoned is set, the null_blk instance registers as a zoned block
device. The zone_size parameter defines how big each zone will be.

Signed-off-by: Matias Bjørling <matias.bjorling@wdc.com>
Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Documentation/block/null_blk.txt
drivers/block/Makefile
drivers/block/null_blk.c
drivers/block/null_blk.h
drivers/block/null_blk_zoned.c [new file with mode: 0644]