Skip to content

Commit 8e55643

Browse files
minipli-ossrostedt
authored andcommitted
eventfs: Use SRCU for freeing eventfs_inodes
To mirror the SRCU lock held in eventfs_iterate() when iterating over eventfs inodes, use call_srcu() to free them too. This was accidentally(?) degraded to RCU in commit 43aa6f9 ("eventfs: Get rid of dentry pointers without refcounts"). Cc: Ajay Kaher <[email protected]> Cc: Masami Hiramatsu <[email protected]> Cc: Mathieu Desnoyers <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: [email protected] Link: https://lore.kernel.org/[email protected] Fixes: 43aa6f9 ("eventfs: Get rid of dentry pointers without refcounts") Signed-off-by: Mathias Krause <[email protected]> Signed-off-by: Steven Rostedt (Google) <[email protected]>
1 parent 12c20c6 commit 8e55643

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/tracefs/event_inode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ static void release_ei(struct kref *ref)
112112
entry->release(entry->name, ei->data);
113113
}
114114

115-
call_rcu(&ei->rcu, free_ei_rcu);
115+
call_srcu(&eventfs_srcu, &ei->rcu, free_ei_rcu);
116116
}
117117

118118
static inline void put_ei(struct eventfs_inode *ei)

0 commit comments

Comments
 (0)