diff options
author | 2022-01-24 09:46:57 -0800 | |
---|---|---|
committer | 2022-04-11 15:31:02 -0700 | |
commit | 994f706872e6ce080506bd795ecf783d5b617de6 (patch) | |
tree | 7c01572e0d810136116c6b26e548507961e809dc /lib/test_bitmap.c | |
parent | srcu: Make srcu_funnel_gp_start() cache ->mynode in snp_leaf (diff) | |
download | linux-dev-994f706872e6ce080506bd795ecf783d5b617de6.tar.xz linux-dev-994f706872e6ce080506bd795ecf783d5b617de6.zip |
srcu: Make Tree SRCU able to operate without snp_node array
This commit makes Tree SRCU able to operate without an snp_node
array, that is, when the srcu_data structures' ->mynode pointers
are NULL. This can result in high contention on the srcu_struct
structure's ->lock, but only when there are lots of call_srcu(),
synchronize_srcu(), and synchronize_srcu_expedited() calls.
Note that when there is no snp_node array, all SRCU callbacks use
CPU 0's callback queue. This is optimal in the common case of low
update-side load because it removes the need to search each CPU
for the single callback that made the grace period happen.
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>
Diffstat (limited to 'lib/test_bitmap.c')
0 files changed, 0 insertions, 0 deletions