Re: [PATCH 5/7] md/raid10: fix any_working flag handling in raid10_sync_request
From: Yu Kuai
Date: Thu Sep 25 2025 - 05:02:37 EST
在 2025/09/17 17:35, linan666@xxxxxxxxxxxxxxx 写道:
From: Li Nan<linan122@xxxxxxxxxx>
In raid10_sync_request(), 'any_working' indicates if any IO will
be submitted. When there's only one In_sync disk with badblocks,
'any_working' might be set to 1 but no IO is submitted. Fix it by
setting 'any_working' after badblock checks.
Fixes: e875ecea266a ("md/raid10 record bad blocks as needed during recovery.")
Signed-off-by: Li Nan<linan122@xxxxxxxxxx>
---
drivers/md/raid10.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
LGTM
Reviewed-by: Yu Kuai <yukuai3@xxxxxxxxxx>