]> git.baikalelectronics.ru Git - kernel.git/commit
srcu: Compute snp_seq earlier in srcu_funnel_gp_start()
authorPaul E. McKenney <paulmck@kernel.org>
Thu, 27 Jan 2022 00:01:26 +0000 (16:01 -0800)
committerPaul E. McKenney <paulmck@kernel.org>
Mon, 11 Apr 2022 22:31:02 +0000 (15:31 -0700)
commit69d1041ba3122fb7fbfcc308ea1aae19188f1374
treef299000c5b04d6ab907fe633d18d0f4a2b7e43b9
parent0e5d111b754553efc819f02859893f821be64e7b
srcu: Compute snp_seq earlier in srcu_funnel_gp_start()

Currently, srcu_funnel_gp_start() tests snp->srcu_have_cbs[idx] and then
separately assigns it to the snp_seq local variable.  This commit does
the assignment earlier to simplify the code a bit.  While in the area,
this commit also takes advantage of the 100-character line limit to put
the call to srcu_schedule_cbs_sdp() on a single line.

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