]> git.baikalelectronics.ru Git - kernel.git/commit
null_blk: Fix zone reset all tracing
authorDamien Le Moal <damien.lemoal@wdc.com>
Thu, 29 Oct 2020 11:04:59 +0000 (20:04 +0900)
committerJens Axboe <axboe@kernel.dk>
Thu, 29 Oct 2020 13:27:30 +0000 (07:27 -0600)
commitc2cd5bfa2f8716c81f480991c64ac427e51aca89
treea694faca8abab74c09010af9d77dc200203d68d8
parent1cb38d5e655d68fb293cc9689710176ad13de29a
null_blk: Fix zone reset all tracing

In the cae of the REQ_OP_ZONE_RESET_ALL operation, the command sector is
ignored and the operation is applied to all sequential zones. For these
commands, tracing the effect of the command using the command sector to
determine the target zone is thus incorrect.

Fix null_zone_mgmt() zone condition tracing in the case of
REQ_OP_ZONE_RESET_ALL to apply tracing to all sequential zones that are
not already empty.

Fixes: d6b2cac50c50 ("null_blk: add trace in null_blk_zoned.c")
Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Cc: stable@vger.kernel.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/null_blk_zoned.c