From: Paul E. McKenney Date: Wed, 16 Jul 2025 16:19:39 +0000 (-0700) Subject: srcu: Add guards for notrace variants of SRCU-fast readers X-Git-Tag: v6.18-rc1~86^2~1^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cacadb630375b8c30ca4d0300812178bb884c0b0;p=thirdparty%2Fkernel%2Fstable.git srcu: Add guards for notrace variants of SRCU-fast readers This adds the usual scoped_guard(srcu_fast_notrace, &my_srcu) and guard(srcu_fast_notrace)(&my_srcu). Signed-off-by: Paul E. McKenney Reviewed-by: Joel Fernandes Cc: Mathieu Desnoyers Cc: Steven Rostedt Cc: Sebastian Andrzej Siewior Cc: --- diff --git a/include/linux/srcu.h b/include/linux/srcu.h index 7a692bf8f99b9..ada65b58bc4c5 100644 --- a/include/linux/srcu.h +++ b/include/linux/srcu.h @@ -515,4 +515,9 @@ DEFINE_LOCK_GUARD_1(srcu_fast, struct srcu_struct, srcu_read_unlock_fast(_T->lock, _T->scp), struct srcu_ctr __percpu *scp) +DEFINE_LOCK_GUARD_1(srcu_fast_notrace, struct srcu_struct, + _T->scp = srcu_read_lock_fast_notrace(_T->lock), + srcu_read_unlock_fast_notrace(_T->lock, _T->scp), + struct srcu_ctr __percpu *scp) + #endif