Commit 83cbe4b
md/raid10: fix any_working flag handling in raid10_sync_request
[ Upstream commit 99582ed ]
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.
Link: https://lore.kernel.org/linux-raid/20260105110300.1442509-11-linan666@huaweicloud.com
Fixes: e875ece ("md/raid10 record bad blocks as needed during recovery.")
Signed-off-by: Li Nan <linan122@huawei.com>
Reviewed-by: Yu Kuai <yukuai3@huawei.com>
Signed-off-by: Yu Kuai <yukuai@fnnas.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent f130001 commit 83cbe4b
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3535 | 3535 | | |
3536 | 3536 | | |
3537 | 3537 | | |
3538 | | - | |
3539 | 3538 | | |
3540 | 3539 | | |
3541 | 3540 | | |
| |||
3550 | 3549 | | |
3551 | 3550 | | |
3552 | 3551 | | |
| 3552 | + | |
3553 | 3553 | | |
3554 | 3554 | | |
3555 | 3555 | | |
| |||
0 commit comments