diff options
| author | Kunwu Chan <kunwu.chan@gmail.com> | 2026-09-07 15:58:22 +0800 |
|---|---|---|
| committer | Paul E. McKenney <paulmck@kernel.org> | 2026-10-12 16:50:40 -0700 |
| commit | cbd520f619714e88cca1b814ae3486427133e9ed (patch) | |
| tree | 57b753112558e82377f58da5fabe9e97688dacc1 /scripts/Makefile.thinlto | |
| parent | cc7287f9ee696e71c3adc23baf21a2dbe0e94874 (diff) | |
| download | linux-cbd520f619714e88cca1b814ae3486427133e9ed.tar.gz linux-cbd520f619714e88cca1b814ae3486427133e9ed.zip | |
srcutree: Make init_srcu_struct_atomic() prevent transition to big
The is_atomic parameter of init_srcu_struct_fields() exists so that
atomic SRCU never transitions to big, but neither
init_srcu_struct_atomic() nor its lockdep counterpart
__init_srcu_struct_atomic() sets it.
On systems where srcutree.convert_to_big selects SRCU_SIZING_INIT,
this needlessly allocates a full srcu_node combining tree for any
dynamically initialized atomic srcu_struct, despite atomic SRCU
having neither callbacks nor srcu_barrier() operations.
Pass true from both atomic entry points, adding an is_atomic parameter
to __init_srcu_struct_common().
Signed-off-by: Kunwu Chan <kunwu.chan@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
