Skip to content

Commit cacadb6

Browse files
committed
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 <paulmck@kernel.org> Reviewed-by: Joel Fernandes <joelagnelf@nvidia.com> Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> Cc: Steven Rostedt <rostedt@goodmis.org> Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Cc: <bpf@vger.kernel.org>
1 parent 7e2a2d0 commit cacadb6

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

include/linux/srcu.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,4 +515,9 @@ DEFINE_LOCK_GUARD_1(srcu_fast, struct srcu_struct,
515515
srcu_read_unlock_fast(_T->lock, _T->scp),
516516
struct srcu_ctr __percpu *scp)
517517

518+
DEFINE_LOCK_GUARD_1(srcu_fast_notrace, struct srcu_struct,
519+
_T->scp = srcu_read_lock_fast_notrace(_T->lock),
520+
srcu_read_unlock_fast_notrace(_T->lock, _T->scp),
521+
struct srcu_ctr __percpu *scp)
522+
518523
#endif

0 commit comments

Comments
 (0)