diff options
author | Xiao Ni <[email protected]> | 2024-11-06 17:51:24 +0800 |
---|---|---|
committer | Song Liu <[email protected]> | 2024-11-07 15:34:52 -0800 |
commit | fa1944bbe6220eb929e2c02e5e8706b908565711 (patch) | |
tree | e7daa76132a92f28a4a7aff146028b5ca969e737 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 4122fef16b172f7c1838fcf74340268c86ed96db (diff) |
md/raid5: Wait sync io to finish before changing group cnt
One customer reports a bug: raid5 is hung when changing thread cnt
while resync is running. The stripes are all in conf->handle_list
and new threads can't handle them.
Commit b39f35ebe86d ("md: don't quiesce in mddev_suspend()") removes
pers->quiesce from mddev_suspend/resume. Before this patch, mddev_suspend
needs to wait for all ios including sync io to finish. Now it's used
to only wait normal io.
Fix this by calling raid5_quiesce from raid5_store_group_thread_cnt
directly to wait all sync requests to finish before changing the group
cnt.
Fixes: b39f35ebe86d ("md: don't quiesce in mddev_suspend()")
Cc: [email protected]
Signed-off-by: Xiao Ni <[email protected]>
Reviewed-by: Yu Kuai <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Song Liu <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions