]> git.baikalelectronics.ru Git - kernel.git/commit
block: Simplify REQ_OP_ZONE_RESET_ALL handling
authorDamien Le Moal <damien.lemoal@wdc.com>
Sun, 27 Oct 2019 14:05:43 +0000 (23:05 +0900)
committerJens Axboe <axboe@kernel.dk>
Thu, 7 Nov 2019 13:30:18 +0000 (06:30 -0700)
commit2b4b5ddd4ff92c851aa8106b19f523c8019f731d
treec8aa4746f136ab4b248320b227ee733cb0d80507
parent701d2b9a77bec495434a0106fbf23f96b24192d6
block: Simplify REQ_OP_ZONE_RESET_ALL handling

There is no need for the function __blkdev_reset_all_zones() as
REQ_OP_ZONE_RESET_ALL can be handled directly in blkdev_reset_zones()
bio loop with an early break from the loop. This patch removes this
function and modifies blkdev_reset_zones(), simplifying the code.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-zoned.c