Skip to content
Commit f74126dc authored by Paul E. McKenney's avatar Paul E. McKenney
Browse files

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: default avatarkernel test robot <lkp@intel.com>
Tested-by: default avatarRong Chen <rong.a.chen@intel.com>
[ paulmck: noinline_for_stack per Nathan Chancellor. ]
Reviewed-by: default avatarNathan Chancellor <nathan@kernel.org>
Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
parent d9ee962f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment