summaryrefslogtreecommitdiff
path: root/include/linux/srcutree.h
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@kernel.org>2022-01-20 13:39:33 -0800
committerPaul E. McKenney <paulmck@kernel.org>2022-04-11 15:31:02 -0700
commit7b9e9b5856e188c1b3ff51185f3600ee79b4ab41 (patch)
tree793309999e33b3c5f439e55ecc18cbe741602b71 /include/linux/srcutree.h
parent95ebe80d99de3cb849c522a1f768e5e8befa0b7c (diff)
downloadlwn-7b9e9b5856e188c1b3ff51185f3600ee79b4ab41.tar.gz
lwn-7b9e9b5856e188c1b3ff51185f3600ee79b4ab41.zip
srcu: Make srcu_funnel_gp_start() cache ->mynode in snp_leaf
Currently, the srcu_funnel_gp_start() walks its local variable snp up the tree and reloads sdp->mynode whenever it is necessary to check whether it is still at the leaf srcu_node level. This works, but is a bit more obtuse than absolutely necessary. In addition, upcoming commits will dynamically size srcu_struct structures, in which case sdp->mynode will no longer necessarily be a constant, and this commit helps prepare for that dynamic sizing. Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'include/linux/srcutree.h')
0 files changed, 0 insertions, 0 deletions