From: Yu Kuai <yukuai3@xxxxxxxxxx> Changes in v2: - add patch 2; - split some patches from v1 that will be sent separately; - rework some commit message; - rework patch 5; Yu Kuai (6): md: fix missing flush of sync_work md: remove redundant check of 'mddev->sync_thread' md: remove redundant md_wakeup_thread() md: don't leave 'MD_RECOVERY_FROZEN' in error path of md_set_readonly() md: fix stopping sync thread dm-raid: delay flushing event_work() after reconfig_mutex is released drivers/md/dm-raid.c | 3 + drivers/md/md.c | 149 ++++++++++++++++++++----------------------- drivers/md/raid5.c | 6 +- 3 files changed, 75 insertions(+), 83 deletions(-) -- 2.39.2