diff options
author | Yu Kuai <yukuai3@huawei.com> | 2023-05-29 21:20:36 +0800 |
---|---|---|
committer | Song Liu <song@kernel.org> | 2023-07-27 00:13:28 -0700 |
commit | 753260ed0b46d2ba0d3d6f68a6a49187bff443e4 (patch) | |
tree | 3f928736a256f31e2951f5937e775168e0b1a2c8 /drivers | |
parent | 130443d60b1b8c7a609a2af3384dd8e60df97181 (diff) | |
download | linux-stable-753260ed0b46d2ba0d3d6f68a6a49187bff443e4.tar.gz linux-stable-753260ed0b46d2ba0d3d6f68a6a49187bff443e4.tar.bz2 linux-stable-753260ed0b46d2ba0d3d6f68a6a49187bff443e4.zip |
md: wake up 'resync_wait' at last in md_reap_sync_thread()
md_reap_sync_thread() is just replaced with wait_event(resync_wait, ...)
from action_store(), just make sure action_store() will still wait for
everything to be done in md_reap_sync_thread().
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Reviewd-by: Xiao Ni <xni@redhat.com>
Signed-off-by: Song Liu <song@kernel.org>
Link: https://lore.kernel.org/r/20230529132037.2124527-6-yukuai1@huaweicloud.com
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/md/md.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c index 920701ab9505..e0d8e751a782 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c @@ -9522,7 +9522,6 @@ void md_reap_sync_thread(struct mddev *mddev) if (mddev_is_clustered(mddev) && is_reshaped && !test_bit(MD_CLOSING, &mddev->flags)) md_cluster_ops->update_size(mddev, old_dev_sectors); - wake_up(&resync_wait); /* flag recovery needed just to double check */ set_bit(MD_RECOVERY_NEEDED, &mddev->recovery); sysfs_notify_dirent_safe(mddev->sysfs_completed); @@ -9530,6 +9529,7 @@ void md_reap_sync_thread(struct mddev *mddev) md_new_event(); if (mddev->event_work.func) queue_work(md_misc_wq, &mddev->event_work); + wake_up(&resync_wait); } EXPORT_SYMBOL(md_reap_sync_thread); |