]> git.baikalelectronics.ru Git - kernel.git/commit
null_blk: Fix REQ_OP_ZONE_CLOSE handling
authorDamien Le Moal <damien.lemoal@wdc.com>
Thu, 26 Dec 2019 06:54:25 +0000 (15:54 +0900)
committerJens Axboe <axboe@kernel.dk>
Mon, 30 Dec 2019 15:51:46 +0000 (08:51 -0700)
commit179a4e5be06dcf70f889ea4d7c19ff93c76b2464
treebffb16dc77f6859517110ec4dc41ddbd1a1b869e
parent194d9db5b324d969033b86b0bd555c0ecd95a1ee
null_blk: Fix REQ_OP_ZONE_CLOSE handling

In order to match ZBC defined behavior, closing an empty zone must
result in the "empty" zone condition instead of the "closed" condition.

Fixes: 67e982e2cd63 ("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