md: remove redundant md_wakeup_thread()
authorYu Kuai <yukuai3@huawei.com>
Thu, 28 Dec 2023 12:55:52 +0000 (20:55 +0800)
committerSong Liu <song@kernel.org>
Mon, 5 Feb 2024 23:23:58 +0000 (15:23 -0800)
commitfaeaf210a559eb05bc1a294082d100d01c49a1e9
tree9f2a40ffcb4463de20763e09995a293285564f19
parent61c90765e131e63ead773b9b99167415e246a945
md: remove redundant md_wakeup_thread()

On the one hand, mddev_unlock() will call md_wakeup_thread()
unconditionally; on the other hand, md_check_recovery() can't make
progress if 'reconfig_mutex' can't be grabbed. Hence, it really doesn't
make sense to wake up daemon thread while 'reconfig_mutex' is still
grabbed.

Remove all the md_wakup_thread() for 'mddev->thread' while
'reconfig_mtuex' is still grabbed.

Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Signed-off-by: Song Liu <song@kernel.org>
Link: https://lore.kernel.org/r/20231228125553.2697765-3-yukuai1@huaweicloud.com
drivers/md/md.c