Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

+5
+5
include/linux/srcu.h
··· 515 515 srcu_read_unlock_fast(_T->lock, _T->scp), 516 516 struct srcu_ctr __percpu *scp) 517 517 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 + 518 523 #endif