summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorZheng Qixing <zhengqixing@huawei.com>2025-02-27 10:55:04 +0300
committerJens Axboe <axboe@kernel.dk>2025-03-06 18:03:28 +0300
commit5236f041fa6c81c71eabad44897e54a0d6d5bbf6 (patch)
treedf2841dc2c23567429d9e55a70a9f5f8cc270a78 /tools/perf/scripts/python
parent9ec65dec634a752ab0a1203510ee190356e4cf1a (diff)
downloadlinux-5236f041fa6c81c71eabad44897e54a0d6d5bbf6.tar.xz
badblocks: fix missing bad blocks on retry in _badblocks_check()
The bad blocks check would miss bad blocks when retrying under contention, as checking parameters are not reset. These stale values from the previous attempt could lead to incorrect scanning in the subsequent retry. Move seqlock to outer function and reinitialize checking state for each retry. This ensures a clean state for each check attempt, preventing any missed bad blocks. Fixes: 3ea3354cb9f0 ("badblocks: improve badblocks_check() for multiple ranges handling") Signed-off-by: Zheng Qixing <zhengqixing@huawei.com> Reviewed-by: Yu Kuai <yukuai3@huawei.com> Acked-by: Coly Li <colyli@kernel.org> Link: https://lore.kernel.org/r/20250227075507.151331-10-zhengqixing@huaweicloud.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions