diff options
author | 2023-03-17 17:35:21 -0700 | |
---|---|---|
committer | 2023-04-04 08:36:01 -0700 | |
commit | 0839ade94bdef395bab02b3a579416c112062026 (patch) | |
tree | dfc3d4a9a646915277fdcfaaed827c4bbfa1b99d /scripts/generate_rust_analyzer.py | |
parent | srcu: Move ->srcu_cb_mutex from srcu_struct to srcu_usage (diff) | |
download | linux-rng-0839ade94bdef395bab02b3a579416c112062026.tar.xz linux-rng-0839ade94bdef395bab02b3a579416c112062026.zip |
srcu: Move ->lock initialization after srcu_usage allocation
Currently, both __init_srcu_struct() in CONFIG_DEBUG_LOCK_ALLOC=y kernels
and init_srcu_struct() in CONFIG_DEBUG_LOCK_ALLOC=n kernel initialize
the srcu_struct structure's ->lock before the srcu_usage structure has
been allocated. This of course prevents the ->lock from being moved
to the srcu_usage structure, so this commit moves the initialization
into the init_srcu_struct_fields() after the srcu_usage structure has
been allocated.
Cc: 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