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>
Tue, 8 Feb 2022 19:10:18 +0000 (11:10 -0800)
commit821a42d5bb853f036b8daf61341e27e8de12f4ae
tree4512e62e6333d565e56559c284154739f2005cbe
parent3bc76a654237d5c71e55e55af511098988f4a631
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.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/srcutree.c