diff options
author | Li Lingfeng <lilingfeng3@huawei.com> | 2023-08-03 09:17:11 +0200 |
---|---|---|
committer | Song Liu <song@kernel.org> | 2023-08-15 18:40:26 +0200 |
commit | 7eb8ff02c1df279bf7f7f29b866beb655a9eebe9 (patch) | |
tree | cb3020d5e092ac44bef479e32bb05730aeafbc06 /lib | |
parent | md/raid10: fix a 'conf->barrier' leakage in raid10_takeover() (diff) | |
download | linux-7eb8ff02c1df279bf7f7f29b866beb655a9eebe9.tar.xz linux-7eb8ff02c1df279bf7f7f29b866beb655a9eebe9.zip |
md: Hold mddev->reconfig_mutex when trying to get mddev->sync_thread
Commit ba9d9f1a707f ("Revert "md: unlock mddev before reap sync_thread in
action_store"") removed the scenario of calling md_unregister_thread()
without holding mddev->reconfig_mutex, so add a lock holding check before
acquiring mddev->sync_thread by passing mdev to md_unregister_thread().
Signed-off-by: Li Lingfeng <lilingfeng3@huawei.com>
Reviewed-by: Yu Kuai <yukuai3@huawei.com>
Link: https://lore.kernel.org/r/20230803071711.2546560-1-lilingfeng@huaweicloud.com
Signed-off-by: Song Liu <song@kernel.org>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions