srcu: Explain why callbacks invocations can't run concurrently
authorFrederic Weisbecker <frederic@kernel.org>
Tue, 3 Oct 2023 23:29:03 +0000 (01:29 +0200)
committerNeeraj Upadhyay (AMD) <neeraj.iitr10@gmail.com>
Mon, 11 Dec 2023 21:11:17 +0000 (02:41 +0530)
commitc21357e4461f3f9c8ff93302906b5372411ee108
tree34ccce4bed9c80e4ab0eb2fb9ce91c5f07877789
parent94c55b9e21979daa88e190bf971c47432a818ebe
srcu: Explain why callbacks invocations can't run concurrently

If an SRCU barrier is queued while callbacks are running and a new
callbacks invocator for the same sdp were to run concurrently, the
RCU barrier might execute too early. As this requirement is non-obvious,
make sure to keep a record.

Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
Reviewed-by: Joel Fernandes (Google) <joel@joelfernandes.org>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Neeraj Upadhyay (AMD) <neeraj.iitr10@gmail.com>
kernel/rcu/srcutree.c