Re: [PATCH -next v3] md: Hold mddev->reconfig_mutex when trying to get mddev->sync_thread

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Aug 3, 2023 at 11:20 AM Li Lingfeng <lilingfeng@xxxxxxxxxxxxxxx> wrote:
>
> From: Li Lingfeng <lilingfeng3@xxxxxxxxxx>
>
> 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@xxxxxxxxxx>
> Reviewed-by: Yu Kuai <yukuai3@xxxxxxxxxx>

Applied to md-next.

Thanks,
Song




[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux