diff options
author | Paul E. McKenney <paulmck@kernel.org> | 2023-03-17 17:16:30 -0700 |
---|---|---|
committer | Paul E. McKenney <paulmck@kernel.org> | 2023-04-04 08:35:50 -0700 |
commit | a0d8cbd3821369dc9478cabd605417afb9eb24dc (patch) | |
tree | 08d1bc59aa20af98f0157b03887e5bb5617c7ea1 /include | |
parent | 208f41b1312443401353bec0c1939e2bfc28adce (diff) | |
download | linux-stable-a0d8cbd3821369dc9478cabd605417afb9eb24dc.tar.gz linux-stable-a0d8cbd3821369dc9478cabd605417afb9eb24dc.tar.bz2 linux-stable-a0d8cbd3821369dc9478cabd605417afb9eb24dc.zip |
srcu: Move ->srcu_size_state from srcu_struct to srcu_usage
This commit moves the ->srcu_size_state field from the srcu_struct
structure to the srcu_usage structure to reduce the size of the former
in order to improve cache locality.
Suggested-by: Christoph Hellwig <hch@lst.de>
Tested-by: Sachin Sant <sachinp@linux.ibm.com>
Tested-by: "Zhang, Qiang1" <qiang1.zhang@intel.com>
Tested-by: Joel Fernandes (Google) <joel@joelfernandes.org>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/srcutree.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/srcutree.h b/include/linux/srcutree.h index c7373fe5c14b..443d27a214ef 100644 --- a/include/linux/srcutree.h +++ b/include/linux/srcutree.h @@ -64,13 +64,13 @@ struct srcu_usage { struct srcu_node *node; /* Combining tree. */ struct srcu_node *level[RCU_NUM_LVLS + 1]; /* First node at each level. */ + int srcu_size_state; /* Small-to-big transition state. */ }; /* * Per-SRCU-domain structure, similar in function to rcu_state. */ struct srcu_struct { - int srcu_size_state; /* Small-to-big transition state. */ struct mutex srcu_cb_mutex; /* Serialize CB preparation. */ spinlock_t __private lock; /* Protect counters and size state. */ struct mutex srcu_gp_mutex; /* Serialize GP work. */ |