]> Gentwo Git Trees - linux/.git/commit
srcu: Create an srcu_expedite_current() function
authorPaul E. McKenney <paulmck@kernel.org>
Wed, 5 Nov 2025 20:32:02 +0000 (12:32 -0800)
committerFrederic Weisbecker <frederic@kernel.org>
Wed, 5 Nov 2025 22:58:14 +0000 (23:58 +0100)
commit34dc27f02cb3799d56a99002261e4d091da0cea4
tree90478a97c9c783f0ee5f2332dd98fa55912c0126
parent58ac42f278054fbc4c3f174524280d7263b0699a
srcu: Create an srcu_expedite_current() function

This commit creates an srcu_expedite_current() function that expedites
the current (and possibly the next) SRCU grace period for the specified
srcu_struct structure.  This functionality will be inherited by RCU
Tasks Trace courtesy of its mapping to SRCU fast.

If the current SRCU grace period is already waiting, that wait will
complete before the expediting takes effect.  If there is no SRCU grace
period in flight, this function might well create one.

[ paulmck: Apply Zqiang feedback for PREEMPT_RT use. ]

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Cc: Andrii Nakryiko <andrii@kernel.org>
Cc: Alexei Starovoitov <ast@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: <bpf@vger.kernel.org>
Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
include/linux/srcutiny.h
include/linux/srcutree.h
kernel/rcu/srcutree.c