md: wake up 'resync_wait' at last in md_reap_sync_thread()
authorYu Kuai <yukuai3@huawei.com>
Mon, 29 May 2023 13:20:36 +0000 (21:20 +0800)
committerSong Liu <song@kernel.org>
Thu, 27 Jul 2023 07:13:28 +0000 (00:13 -0700)
commit753260ed0b46d2ba0d3d6f68a6a49187bff443e4
tree3f928736a256f31e2951f5937e775168e0b1a2c8
parent130443d60b1b8c7a609a2af3384dd8e60df97181
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
drivers/md/md.c