]> git.baikalelectronics.ru Git - kernel.git/commit
null_blk: Fix zone write handling
authorDamien Le Moal <damien.lemoal@wdc.com>
Thu, 9 Jan 2020 05:03:55 +0000 (14:03 +0900)
committerJens Axboe <axboe@kernel.dk>
Wed, 15 Jan 2020 15:18:39 +0000 (08:18 -0700)
commit6e9653be3aea5a4f3ab25fd491a83f25e2fcd8df
tree2c0f9532089387ef752f99b55fc55a60290bf1db
parent9e1bb5a5cfc6b987699c389553502eb138dac139
null_blk: Fix zone write handling

null_zone_write() only allows writing empty and implicitly opened zones.
Writing to closed and explicitly opened zones must also be allowed and
the zone condition must be transitioned to implicit open if the zone
is not explicitly opened already.

Fixes: 96173c746975 ("null_blk: add zone open, close, and finish support")
Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/null_blk_zoned.c