rcu: Make rcu_gp_init() and rcu_gp_fqs_loop noinline to conserve stack
authorPaul E. McKenney <paulmck@kernel.org>
Tue, 8 Jun 2021 04:57:02 +0000 (21:57 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Fri, 6 Aug 2021 20:41:48 +0000 (13:41 -0700)
commitf74126dcbcbffe0d9fc3cb9bbf171b124a6791e5
tree8f120da7dcb6a62806bf48b47298d61351707104
parentd9ee962feb4f26d4eac0042861457d941aa2df5f
rcu: Make rcu_gp_init() and rcu_gp_fqs_loop noinline to conserve stack

The kbuild test project found an oversized stack frame in rcu_gp_kthread()
for some kernel configurations.  This oversizing was due to a very large
amount of inlining, which is unnecessary due to the fact that this code
executes infrequently.  This commit therefore marks rcu_gp_init() and
rcu_gp_fqs_loop noinline_for_stack to conserve stack space.

Reported-by: kernel test robot <lkp@intel.com>
Tested-by: Rong Chen <rong.a.chen@intel.com>
[ paulmck: noinline_for_stack per Nathan Chancellor. ]
Reviewed-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/tree.c