android_kernel_sony_sdm845/kernel/rcu
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Neeraj Upadhyay 402380680a 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.

Change-Id: Icdc3a9a03d6a58d59cf4e81911ad7b48651c82f0
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>
Signed-off-by: mydongistiny <jaysonedson@gmail.com>
Signed-off-by: CloudedQuartz <ravenklawasd@gmail.com>
Signed-off-by: Sorayukii <sorayukii69@gmail.com>
2026-05-15 17:49:36 +07:00
..
Kconfig rcu: Drive TASKS_RCU directly off of PREEMPT 2026-05-15 17:49:33 +07:00
Kconfig.debug rcu: Add support for consolidated-RCU reader checking 2026-05-15 17:49:36 +07:00
Makefile BACKPORT: rcu: Ports some of RCU's taken from k4.14 2026-05-15 17:49:30 +07:00
rcu.h rcu: Move rcu.h to new trivial-function style 2026-05-15 17:49:33 +07:00
rcu_segcblist.c rcu: Remove unused RCU list functions 2026-05-15 17:49:32 +07:00
rcu_segcblist.h rcu: Remove unused RCU list functions 2026-05-15 17:49:32 +07:00
rcuperf.c BACKPORT: rcu: Ports some of RCU's taken from k4.14 2026-05-15 17:49:30 +07:00
rcutorture.c rcutorture: Fix rcu_torture_one_read() pipe_count overflow comment 2026-05-15 17:49:35 +07:00
srcutiny.c BACKPORT: rcu: Ports some of RCU's taken from k4.14 2026-05-15 17:49:30 +07:00
srcutree.c doc: Fix various RCU docbook comment-header problems 2026-05-15 17:49:34 +07:00
sync.c doc: Fix various RCU docbook comment-header problems 2026-05-15 17:49:34 +07:00
tiny.c BACKPORT: rcu: Ports some of RCU's taken from k4.14 2026-05-15 17:49:30 +07:00
tree.c rcu: Fix self-wakeups for grace-period kthread 2026-05-15 17:49:36 +07:00
tree.h rcu: Localize rcu_state ->orphan_pend and ->orphan_done 2026-05-15 17:49:32 +07:00
tree_exp.h rcu: Suppress smp_processor_id() complaint in synchronize_rcu_expedited_wait() 2026-05-15 17:49:35 +07:00
tree_plugin.h rcu: Fix up pending cbs check in rcu_prepare_for_idle 2026-05-15 17:49:34 +07:00
update.c rcu: Add support for consolidated-RCU reader checking 2026-05-15 17:49:36 +07:00