Commit f2d87a7
md: fix missing flush of sync_work
Commit ac61978 ("md: use separate work_struct for md_start_sync()")
use a new sync_work to replace del_work, however, stop_sync_thread() and
__md_stop_writes() was trying to wait for sync_thread to be done, hence
they should switch to use sync_work as well.
Noted that md_start_sync() from sync_work will grab 'reconfig_mutex',
hence other contex can't held the same lock to flush work, and this will
be fixed in later patches.
Fixes: ac61978 ("md: use separate work_struct for md_start_sync()")
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Acked-by: Xiao Ni <xni@redhat.com>
Signed-off-by: Song Liu <song@kernel.org>
Link: https://lore.kernel.org/r/20231205094215.1824240-2-yukuai1@huaweicloud.com1 parent c467e97 commit f2d87a7
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4857 | 4857 | | |
4858 | 4858 | | |
4859 | 4859 | | |
4860 | | - | |
| 4860 | + | |
4861 | 4861 | | |
4862 | 4862 | | |
4863 | 4863 | | |
| |||
6265 | 6265 | | |
6266 | 6266 | | |
6267 | 6267 | | |
6268 | | - | |
| 6268 | + | |
6269 | 6269 | | |
6270 | 6270 | | |
6271 | 6271 | | |
| |||
0 commit comments