Commit 99582ed
md/raid10: fix any_working flag handling in raid10_sync_request
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/[email protected]
Fixes: e875ece ("md/raid10 record bad blocks as needed during recovery.")
Signed-off-by: Li Nan <[email protected]>
Reviewed-by: Yu Kuai <[email protected]>
Signed-off-by: Yu Kuai <[email protected]>1 parent 8ff59a7 commit 99582ed
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3395 | 3395 | | |
3396 | 3396 | | |
3397 | 3397 | | |
3398 | | - | |
3399 | 3398 | | |
3400 | 3399 | | |
3401 | 3400 | | |
| |||
3410 | 3409 | | |
3411 | 3410 | | |
3412 | 3411 | | |
| 3412 | + | |
3413 | 3413 | | |
3414 | 3414 | | |
3415 | 3415 | | |
| |||
0 commit comments