diff options
author | Paul E. McKenney <paulmck@kernel.org> | 2023-03-18 03:35:21 +0300 |
---|---|---|
committer | Paul E. McKenney <paulmck@kernel.org> | 2023-04-04 18:36:01 +0300 |
commit | 0839ade94bdef395bab02b3a579416c112062026 (patch) | |
tree | dfc3d4a9a646915277fdcfaaed827c4bbfa1b99d /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 574dc1a7efe490dffe5c1ce0285306feec16a880 (diff) | |
download | linux-0839ade94bdef395bab02b3a579416c112062026.tar.xz |
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 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions