Skip to content

Commit 6047967

Browse files
committed
ksoftirqd: Use new cond_resched_rcu_qs() function
Simplify run_ksoftirqd() by using the new cond_resched_rcu_qs() function that conditionally reschedules, but unconditionally supplies an RCU quiescent state. This commit is separate from the previous commit by Calvin Owens because Calvin's approach can be backported, while this commit cannot be. The reason that this commit cannot be backported is that cond_resched_rcu_qs() does not always provide the needed quiescent state in earlier kernels. Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
1 parent 28423ad commit 6047967

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

‎kernel/softirq.c‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -657,12 +657,7 @@ static void run_ksoftirqd(unsigned int cpu)
657657
*/
658658
__do_softirq();
659659
local_irq_enable();
660-
cond_resched();
661-
662-
preempt_disable();
663-
rcu_note_context_switch();
664-
preempt_enable();
665-
660+
cond_resched_rcu_qs();
666661
return;
667662
}
668663
local_irq_enable();

0 commit comments

Comments
 (0)