diff options
| author | Yu Kuai <[email protected]> | 2023-12-05 09:42:13 +0000 |
|---|---|---|
| committer | Song Liu <[email protected]> | 2023-12-06 20:44:00 +0000 |
| commit | f2d87a759f6841a132e845e2fafdad37385ddd30 (patch) | |
| tree | c09c82a0e7ad6295cdb7cb3bb1bf8880e2582c5c /fs/ubifs/commit.c | |
| parent | md/raid6: use valid sector values to determine if an I/O should wait on the r... (diff) | |
| download | kernel-f2d87a759f6841a132e845e2fafdad37385ddd30.tar.gz kernel-f2d87a759f6841a132e845e2fafdad37385ddd30.zip | |
md: fix missing flush of sync_work
Commit ac619781967b ("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: ac619781967b ("md: use separate work_struct for md_start_sync()")
Signed-off-by: Yu Kuai <[email protected]>
Acked-by: Xiao Ni <[email protected]>
Signed-off-by: Song Liu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'fs/ubifs/commit.c')
0 files changed, 0 insertions, 0 deletions
