]> git.baikalelectronics.ru Git - kernel.git/commit
srcu: Explain srcu_funnel_gp_start() call to list_add() is safe
authorPaul E. McKenney <paulmck@kernel.org>
Thu, 27 Jan 2022 21:47:42 +0000 (13:47 -0800)
committerPaul E. McKenney <paulmck@kernel.org>
Mon, 11 Apr 2022 22:52:30 +0000 (15:52 -0700)
commit06661729d18b99fc47c8345e1361a0d2761f77ac
treece40ef89270381a2febdd77a0bb8f928db3e0478
parentbee07de16297331f60527c825f07dbec8f162c63
srcu: Explain srcu_funnel_gp_start() call to list_add() is safe

This commit adds a comment explaining why an unprotected call to
list_add() from srcu_funnel_gp_start() can be safe.  TL;DR: It is only
called during very early boot when we don't have no steeking concurrency!

Co-developed-by: Neeraj Upadhyay <quic_neeraju@quicinc.com>
Signed-off-by: Neeraj Upadhyay <quic_neeraju@quicinc.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/srcutree.c