[PATCH -next 0/8] md: bugfix and cleanup for sync_thread

From: Yu Kuai
Date: Fri Nov 10 2023 - 12:47:24 EST


Yu Kuai (8):
md: fix missing flush of sync_work
md: use interruptible apis in idle/frozen_sync_thread()
md: return error to user if idle/frozen_sync_thread() is interrupted
md: remove redundant md_wakeup_thread()
md: don't leave 'MD_RECOVERY_FROZEN' in error path of
md_set_readonly()
md: factor out a helper to stop sync_thread
md: use new helper to stop sync_thread in __md_stop_writes()
dm-raid: fix a deadlock in md_stop()

drivers/md/dm-raid.c | 3 +
drivers/md/md.c | 195 +++++++++++++++++++++++++------------------
2 files changed, 116 insertions(+), 82 deletions(-)

--
2.39.2