diff options
Diffstat (limited to 'kernel/rcutree.c')
-rw-r--r-- | kernel/rcutree.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/kernel/rcutree.c b/kernel/rcutree.c index d62c04482228..6b82a9565149 100644 --- a/kernel/rcutree.c +++ b/kernel/rcutree.c | |||
@@ -206,6 +206,9 @@ EXPORT_SYMBOL_GPL(rcu_note_context_switch); | |||
206 | DEFINE_PER_CPU(struct rcu_dynticks, rcu_dynticks) = { | 206 | DEFINE_PER_CPU(struct rcu_dynticks, rcu_dynticks) = { |
207 | .dynticks_nesting = DYNTICK_TASK_EXIT_IDLE, | 207 | .dynticks_nesting = DYNTICK_TASK_EXIT_IDLE, |
208 | .dynticks = ATOMIC_INIT(1), | 208 | .dynticks = ATOMIC_INIT(1), |
209 | #ifdef CONFIG_RCU_USER_QS | ||
210 | .ignore_user_qs = true, | ||
211 | #endif | ||
209 | }; | 212 | }; |
210 | 213 | ||
211 | static int blimit = 10; /* Maximum callbacks per rcu_do_batch. */ | 214 | static int blimit = 10; /* Maximum callbacks per rcu_do_batch. */ |
@@ -430,7 +433,7 @@ void rcu_user_enter(void) | |||
430 | 433 | ||
431 | local_irq_save(flags); | 434 | local_irq_save(flags); |
432 | rdtp = &__get_cpu_var(rcu_dynticks); | 435 | rdtp = &__get_cpu_var(rcu_dynticks); |
433 | if (!rdtp->in_user) { | 436 | if (!rdtp->ignore_user_qs && !rdtp->in_user) { |
434 | rdtp->in_user = true; | 437 | rdtp->in_user = true; |
435 | rcu_eqs_enter(1); | 438 | rcu_eqs_enter(1); |
436 | } | 439 | } |