diff options
author | Steven Rostedt (Google) <[email protected]> | 2024-01-04 16:57:12 -0500 |
---|---|---|
committer | Steven Rostedt (Google) <[email protected]> | 2024-01-04 17:11:57 -0500 |
commit | e109deadb73318cf4a3bd61287d969f705df278f (patch) | |
tree | 0a62348a5aeb58034c055bb97be8ba08f90475d5 /scripts/gdb/linux/utils.py | |
parent | 8186fff7ab649085e2c60d032d9a20a85af1d87c (diff) |
eventfs: Have eventfs_iterate() stop immediately if ei->is_freed is set
If ei->is_freed is set in eventfs_iterate(), it means that the directory
that is being iterated on is in the process of being freed. Just exit the
loop immediately when that is ever detected, and separate out the return
of the entry->callback() from ei->is_freed.
Link: https://lore.kernel.org/linux-trace-kernel/[email protected]
Cc: Masami Hiramatsu <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Mathieu Desnoyers <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Al Viro <[email protected]>
Cc: Christian Brauner <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
Signed-off-by: Steven Rostedt (Google) <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions