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>
Thu, 24 Feb 2022 17:50:10 +0000 (09:50 -0800)
commit54c35a04b82b2ce3597dbfd4191b0b69f35e478a
tree6234707a9fd14cda5e8b9db4e2a3ae7f20057d0b
parentd0ea78b29f7fd7ba0b44c7a71fccf25030cd63b6
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