summaryrefslogtreecommitdiffstats
path: root/io_uring
diff options
context:
space:
mode:
authorSteven Rostedt (Google) <rostedt@goodmis.org>2023-11-21 00:51:06 +0100
committerSteven Rostedt (Google) <rostedt@goodmis.org>2023-11-21 01:01:54 +0100
commit88903daecacf03b1e5636e1b5f18bda5b07030fc (patch)
tree9dea509b6b08ddf80736bccb7a7b3ffb95bfa9fe /io_uring
parentLinux 6.7-rc2 (diff)
downloadlinux-88903daecacf03b1e5636e1b5f18bda5b07030fc.tar.xz
linux-88903daecacf03b1e5636e1b5f18bda5b07030fc.zip
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 '')
0 files changed, 0 insertions, 0 deletions