commit | 16c731fed6d8e5615e23d2fd59cfe62eb10d9ff4 | [log] [tgz] |
---|---|---|
author | Damien Le Moal <damien.lemoal@wdc.com> | Thu Jan 09 14:03:55 2020 +0900 |
committer | Jens Axboe <axboe@kernel.dk> | Wed Jan 15 08:18:39 2020 -0700 |
tree | 2c0f9532089387ef752f99b55fc55a60290bf1db | |
parent | 4a2f704eb2d831a2d73d7f4cdd54f45c49c3c353 [diff] |
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: da644b2cc1a4 ("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>