aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/raid1.c
diff options
context:
space:
mode:
authorZheng Qixing <[email protected]>2025-02-27 07:55:04 +0000
committerJens Axboe <[email protected]>2025-03-06 15:03:28 +0000
commit5236f041fa6c81c71eabad44897e54a0d6d5bbf6 (patch)
treedf2841dc2c23567429d9e55a70a9f5f8cc270a78 /drivers/md/raid1.c
parentbadblocks: fix merge issue when new badblocks align with pre+1 (diff)
downloadkernel-5236f041fa6c81c71eabad44897e54a0d6d5bbf6.tar.gz
kernel-5236f041fa6c81c71eabad44897e54a0d6d5bbf6.zip
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 <[email protected]> Reviewed-by: Yu Kuai <[email protected]> Acked-by: Coly Li <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'drivers/md/raid1.c')
0 files changed, 0 insertions, 0 deletions