lkml.org 
[lkml]   [2023]   [Aug]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH -next v3] md: Hold mddev->reconfig_mutex when trying to get mddev->sync_thread
On Thu, Aug 3, 2023 at 11:20 AM Li Lingfeng <lilingfeng@huaweicloud.com> wrote:
>
> From: Li Lingfeng <lilingfeng3@huawei.com>
>
> 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>

Applied to md-next.

Thanks,
Song

\
 
 \ /
  Last update: 2023-08-13 19:05    [W:0.343 / U:0.004 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site