Re: [PATCH 2/2] md: protect md_unregister_thread from reentrancy

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

 





On 5/9/22 2:39 PM, Song Liu wrote:
On Thu, May 5, 2022 at 1:18 AM Guoqing Jiang<guoqing.jiang@xxxxxxxxx>  wrote:
From: Guoqing Jiang<guoqing.jiang@xxxxxxxxxxxxxxx>

Generally, the md_unregister_thread is called with reconfig_mutex, but
raid_message in dm-raid doesn't hold reconfig_mutex to unregister thread,
so md_unregister_thread can be called simulitaneously from two call sites
in theory.
Can we add lock/unlock into raid_message? Are there some constraints here?

Honestly, I don't know about dm-raid well, and there was no reply from dm people
as you might know, so I prefer leave it as it is.

Thanks,
Guoqing



[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