diff options
author | 2023-03-17 21:30:32 -0700 | |
---|---|---|
committer | 2023-04-04 08:36:37 -0700 | |
commit | fd1b3f8e097b7fbbab8ac4a802b24fc23c703dcf (patch) | |
tree | 578bd0619bd396da17e47781b91b682306b7d99b /scripts/generate_rust_analyzer.py | |
parent | srcu: Move srcu_barrier() fields from srcu_struct to srcu_usage (diff) | |
download | linux-rng-fd1b3f8e097b7fbbab8ac4a802b24fc23c703dcf.tar.xz linux-rng-fd1b3f8e097b7fbbab8ac4a802b24fc23c703dcf.zip |
srcu: Move work-scheduling fields from srcu_struct to srcu_usage
This commit moves the ->reschedule_jiffies, ->reschedule_count, and
->work fields from the srcu_struct structure to the srcu_usage structure
to reduce the size of the former in order to improve cache locality.
However, this means that the container_of() calls cannot get a pointer
to the srcu_struct because they are no longer in the srcu_struct.
This issue is addressed by adding a ->srcu_ssp field in the srcu_usage
structure that references the corresponding srcu_struct structure.
And given the presence of the sup pointer to the srcu_usage structure,
replace some ssp->srcu_usage-> instances with sup->.
[ paulmck Apply feedback from kernel test robot. ]
Link: https://lore.kernel.org/oe-kbuild-all/202303191400.iO5BOqka-lkp@intel.com/
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 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions