Commit a5d6d3a1 authored by Eric Dumazet's avatar Eric Dumazet Committed by Paul E. McKenney

softirq: A single rcu_bh_qs() call per softirq set is enough

Calling rcu_bh_qs() after every softirq action is not really needed.
What RCU needs is at least one rcu_bh_qs() per softirq round to note a
quiescent state was passed for rcu_bh.

Note for Paul and myself : this could be inlined as a single instruction
and avoid smp_processor_id()
(sone this_cpu_write(rcu_bh_data.passed_quiesce, 1))
Signed-off-by: default avatarEric Dumazet <>
Signed-off-by: default avatarPaul E. McKenney <>
Reviewed-by: Josh Triplett's avatarJosh Triplett <>
parent fa07a58f
......@@ -232,7 +232,6 @@ asmlinkage void __do_softirq(void)
bool in_hardirq;
__u32 pending;
int softirq_bit;
int cpu;
* Mask out PF_MEMALLOC s current task context is borrowed for the
......@@ -247,7 +246,6 @@ asmlinkage void __do_softirq(void)
__local_bh_disable_ip(_RET_IP_, SOFTIRQ_OFFSET);
in_hardirq = lockdep_softirq_start();
cpu = smp_processor_id();
/* Reset the pending bitmask before enabling irqs */
......@@ -276,11 +274,11 @@ asmlinkage void __do_softirq(void)
prev_count, preempt_count());
pending >>= softirq_bit;
pending = local_softirq_pending();
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment