diff options
author | 2023-12-28 20:55:52 +0800 | |
---|---|---|
committer | 2024-02-05 15:23:58 -0800 | |
commit | faeaf210a559eb05bc1a294082d100d01c49a1e9 (patch) | |
tree | 9f2a40ffcb4463de20763e09995a293285564f19 /include/linux/blkdev.h | |
parent | md: remove redundant check of 'mddev->sync_thread' (diff) | |
download | wireguard-linux-faeaf210a559eb05bc1a294082d100d01c49a1e9.tar.xz wireguard-linux-faeaf210a559eb05bc1a294082d100d01c49a1e9.zip |
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
Diffstat (limited to 'include/linux/blkdev.h')
0 files changed, 0 insertions, 0 deletions