Re: [PATCH] eventfs: Test for ei->is_freed when accessing ei->dentry

2023-10-28 Thread Naresh Kamboju
On Sun, 29 Oct 2023 at 02:07, Steven Rostedt wrote: > > From: "Steven Rostedt (Google)" > > The eventfs_inode (ei) is protected by SRCU, but the ei->dentry is not. It > is protected by the eventfs_mutex. Anytime the eventfs_mutex is released, > and access to the ei->dentry needs to be done, it sh

[PATCH] eventfs: Test for ei->is_freed when accessing ei->dentry

2023-10-28 Thread Steven Rostedt
From: "Steven Rostedt (Google)" The eventfs_inode (ei) is protected by SRCU, but the ei->dentry is not. It is protected by the eventfs_mutex. Anytime the eventfs_mutex is released, and access to the ei->dentry needs to be done, it should first check if ei->is_freed is set under the eventfs_mutex.