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)
commitaeb9b39b8f4aac1233302c53a1fd99a73fd2c262
treef299000c5b04d6ab907fe633d18d0f4a2b7e43b9
parent3bedebcf63c2ad7396f1be138bbef91a402f33cd
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