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