summaryrefslogtreecommitdiff
path: root/kernel/configs.c
diff options
context:
space:
mode:
authorNeeraj Upadhyay <neeraju@codeaurora.org>2019-03-08 12:46:18 +0300
committerPaul E. McKenney <paulmck@linux.ibm.com>2019-03-27 00:37:49 +0300
commit0f58d2ac2c87d27006c2b610668ebc4ff1f7c3ba (patch)
tree5e7f2843a29604517e6a0ef6fefad0fecc4a315d /kernel/configs.c
parent497e42600b69aca1b799c840d2cfc7ad60bb8017 (diff)
downloadlinux-0f58d2ac2c87d27006c2b610668ebc4ff1f7c3ba.tar.xz
rcu: Fix self-wakeups for grace-period kthread
The current rcu_gp_kthread_wake() function uses in_interrupt() and thus does a self-wakeup from all interrupt contexts, including the pointless case where the GP kthread happens to be running with bottom halves disabled, along with the impossible case where the GP kthread is running within an NMI handler (you are not supposed to invoke rcu_gp_kthread_wake() from within an NMI handler. This commit therefore replaces the in_interrupt() with in_irq(), so that the self-wakeups happen only from handlers for hardware interrupts and softirqs. This also makes the code match the comment. Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org> Signed-off-by: Paul E. McKenney <paulmck@linux.ibm.com> Acked-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'kernel/configs.c')
0 files changed, 0 insertions, 0 deletions