[PATCH] rcu: Report a quiescent state of TASKS_RCU on a tick from user
From: Byungchul Park
Date: Mon May 14 2018 - 20:21:43 EST
The reporting was removed while simplifying the commit 508880df6 (rcu:
Improve rcu_note_voluntary_context_switch() reporting). Add it back.
Signed-off-by: Byungchul Park <byungchul.park@xxxxxxx>
---
kernel/rcu/tiny.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/kernel/rcu/tiny.c b/kernel/rcu/tiny.c
index befc932..3345596 100644
--- a/kernel/rcu/tiny.c
+++ b/kernel/rcu/tiny.c
@@ -120,8 +120,10 @@ void rcu_bh_qs(void)
*/
void rcu_check_callbacks(int user)
{
- if (user)
+ if (user) {
rcu_sched_qs();
+ rcu_tasks_qs();
+ }
if (user || !in_softirq())
rcu_bh_qs();
}
--
1.9.1