Hi Lidong, On Sat, Jun 5, 2021 at 8:29 AM Lidong Zhong <lidong.zhong@xxxxxxxx> wrote: > > The mddev data structure is freed in mddev_delayed_delete(), which is > schedualed after the array is deconfigured completely when stopping. So > there is a race window between md_open() and do_md_stop(), which leads > to /dev/mdX can still be opened by userspace even it's not accessible > any more. As a result, a DeviceDisappeared event will not be able to be > monitored by mdadm in monitor mode. This patch tries to fix it by adding > this new flag MD_DELETING. > > Signed-off-by: Lidong Zhong <lidong.zhong@xxxxxxxx> The patch still contains a lot of bad format strings. How did you send it? I guess it is not from git-send-email? Thanks, Song