On Wed, 2 Aug 2023 at 16:43, Nikolaus Rath <Nikolaus@xxxxxxxx> wrote: > Will think about how to best fix that. The problem is that LOOKUP for > the ctrl file name always succeeds (no matter the directory), so we'd > have to issue an additional NOTIFY_DELETE for every directory *and* > there'd still be a race condition with LOOKUP(ctrl_file) being called > in-between. Only need to issue the NOTIFY_DELETE if the ctrl_file has actually been looked up. If it has, then yes, an extra NOTIFY_DELETE needs to be done. After having done NOTIFY_DELETE(ctrl_file) the LOOKUP(ctrl_file) can just fail with -ENOENT. Thanks, Miklos