null_blk: return fixed zoned reads > write pointer
authorAjay Joshi <ajay.joshi@wdc.com>
Thu, 17 Oct 2019 21:19:43 +0000 (14:19 -0700)
committerJens Axboe <axboe@kernel.dk>
Fri, 18 Oct 2019 01:01:22 +0000 (19:01 -0600)
commitdd85b4922de1b70f0729d2a7856db619e210a8ec
tree10baad9693e32ac04eafed70feef99317b6a8e1b
parent45919fbfe1c487c17ea1d198534339a5e8abeae3
null_blk: return fixed zoned reads > write pointer

A zoned block device maintains a write pointer within a zone, and reads
beyond the write pointer are undefined. Fill data buffer returned above
the write pointer with 0xFF.

Signed-off-by: Ajay Joshi <ajay.joshi@wdc.com>
Reviewed-by: Damien Le Moal <damien.lemoal@wdc.com>
Reviewed-by: Matias Bjørling <matias.bjorling@wdc.com>
Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/null_blk.h
drivers/block/null_blk_main.c
drivers/block/null_blk_zoned.c