diff options
| author | Vineet Gupta <vineet.gupta@linux.dev> | 2026-10-21 10:44:06 -0700 |
|---|---|---|
| committer | Steven Rostedt <rostedt@goodmis.org> | 2026-11-20 10:02:35 -0500 |
| commit | 7ea88e9d57e9b0241302e8e2f90b470a40651ffc (patch) | |
| tree | 4fc92b6549f9d878d66cbf6d5b69749e3b2b2346 /rust/kernel/alloc/kvec | |
| parent | 700e5c063fd765fd09c1007ec8a927bddd82798b (diff) | |
fgraph: Use scoped_guard() for the task list walk
alloc_retstack_tasklist() open-codes rcu_read_lock() and unwinds it
through an unlock label. Use scoped_guard(rcu) instead and let the
compiler emit the unlock on every exit path.
The -EAGAIN case now jumps straight to the free label rather than to
unlock; leaving the guard's scope releases the RCU read lock on the
way, so the unlock label has no remaining users and is removed.
No functional change: objdump of fgraph.o shows identical call targets
and counts, including the three __rcu_read_unlock() sites the compiler
emits for the exits from the read-side section. A PROVE_RCU +
DEBUG_ATOMIC_SLEEP build with the -EAGAIN path forced several thousand
times is clean.
Link: https://patch.msgid.link/20261021174406.2891598-3-vineet.gupta@linux.dev
Suggested-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Vineet Gupta <vineet.gupta@linux.dev>
Tested-by: Vineet Gupta <vineet.gupta@linux.dev>
Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'rust/kernel/alloc/kvec')
0 files changed, 0 insertions, 0 deletions
