Skip to content

Commit b5b96c9

Browse files
committed
Revert "softirq: Let ksoftirqd do its job"
This reverts commit 4cd13c2.
1 parent c5b3d28 commit b5b96c9

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

kernel/softirq.c

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -77,17 +77,6 @@ static void wakeup_softirqd(void)
7777
wake_up_process(tsk);
7878
}
7979

80-
/*
81-
* If ksoftirqd is scheduled, we do not want to process pending softirqs
82-
* right now. Let ksoftirqd handle this at its own rate, to get fairness.
83-
*/
84-
static bool ksoftirqd_running(void)
85-
{
86-
struct task_struct *tsk = __this_cpu_read(ksoftirqd);
87-
88-
return tsk && (tsk->state == TASK_RUNNING);
89-
}
90-
9180
/*
9281
* preempt_count and SOFTIRQ_OFFSET usage:
9382
* - preempt_count is changed by SOFTIRQ_OFFSET on entering or leaving
@@ -325,7 +314,7 @@ asmlinkage __visible void do_softirq(void)
325314

326315
pending = local_softirq_pending();
327316

328-
if (pending && !ksoftirqd_running())
317+
if (pending)
329318
do_softirq_own_stack();
330319

331320
local_irq_restore(flags);
@@ -352,9 +341,6 @@ void irq_enter(void)
352341

353342
static inline void invoke_softirq(void)
354343
{
355-
if (ksoftirqd_running())
356-
return;
357-
358344
if (!force_irqthreads) {
359345
#ifdef CONFIG_HAVE_IRQ_EXIT_ON_IRQ_STACK
360346
/*

0 commit comments

Comments
 (0)