commit | 1385139340b7a1c8f35cb7a52af221096cdef86e | [log] [tgz] |
---|---|---|
author | Paul E. McKenney <paulmck@kernel.org> | Fri Jan 21 16:13:52 2022 -0800 |
committer | Paul E. McKenney <paulmck@kernel.org> | Fri Jan 21 16:13:52 2022 -0800 |
tree | cc343ff650135ecd6b66c404923722a56fa03213 | |
parent | 7f86361f71df363ee8d68be976c9303cd2d27408 [diff] |
srcu: Dynamically allocate srcu_node array This commit shrinks the srcu_struct structure by converting its ->node field from a fixed-size compile-time array to a pointer to a dynamically allocated array. In kernels built with large values of NR_CPUS that boot on systems with smaller numbers of CPUs, this can save significant memory. Reported-by: A cast of thousands Signed-off-by: Paul E. McKenney <paulmck@kernel.org>