diff options
author | Steven Rostedt (Google) | 2023-11-20 18:51:06 -0500 |
---|---|---|
committer | Steven Rostedt (Google) | 2023-11-20 19:01:54 -0500 |
commit | 88903daecacf03b1e5636e1b5f18bda5b07030fc (patch) | |
tree | 9dea509b6b08ddf80736bccb7a7b3ffb95bfa9fe /scripts/package | |
parent | 98b1cc82c4affc16f5598d4fa14b1858671b2263 (diff) |
eventfs: Remove expectation that ei->is_freed means ei->dentry == NULL
The logic to free the eventfs_inode (ei) use to set is_freed and clear the
"dentry" field under the eventfs_mutex. But that changed when a race was
found where the ei->dentry needed to be cleared when the last dput() was
called on it. But there was still logic that checked if ei->dentry was not
NULL and is_freed is set, and would warn if it was.
But since that situation was changed and the ei->dentry isn't cleared
until the last dput() is called on it while the ei->is_freed is set, do
not test for that condition anymore, and change the comments to reflect
that.
Link: https://lkml.kernel.org/r/20231120235154.265826243@goodmis.org
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Fixes: 020010fbfa20 ("eventfs: Delete eventfs_inode when the last dentry is freed")
Reported-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Diffstat (limited to 'scripts/package')
0 files changed, 0 insertions, 0 deletions