diff options
author | Paul E. McKenney <paulmck@kernel.org> | 2023-03-18 01:35:21 +0100 |
---|---|---|
committer | Paul E. McKenney <paulmck@kernel.org> | 2023-04-04 17:36:01 +0200 |
commit | 0839ade94bdef395bab02b3a579416c112062026 (patch) | |
tree | dfc3d4a9a646915277fdcfaaed827c4bbfa1b99d /.mailmap | |
parent | srcu: Move ->srcu_cb_mutex from srcu_struct to srcu_usage (diff) | |
download | linux-0839ade94bdef395bab02b3a579416c112062026.tar.xz linux-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 '.mailmap')
0 files changed, 0 insertions, 0 deletions