Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1423031
| From | Paolo Abeni <pabeni@redhat.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 3/5] sched/preempt: cond_resched_softirq() must check for softirq |
| Date | 2016-06-15 15:50 +0200 |
| Message-ID | <rKjmF-3b4-3@gated-at.bofh.it> (permalink) |
| References | <rKjmF-3b4-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Currently cond_resched_softirq() fails to reschedule if there
are pending softirq but no other running process. This happens
i.e. when receiving an interrupt with local bh disabled.
Reported-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
---
kernel/sched/core.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index 7f2cae4..788625f 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -4837,7 +4837,8 @@ int __sched __cond_resched_softirq(void)
{
BUG_ON(!in_softirq());
- if (should_resched(SOFTIRQ_DISABLE_OFFSET)) {
+ if (should_resched(SOFTIRQ_DISABLE_OFFSET) ||
+ local_softirq_pending()) {
local_bh_enable();
preempt_schedule_common();
local_bh_disable();
--
1.8.3.1
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH 3/5] sched/preempt: cond_resched_softirq() must check for softirq Paolo Abeni <pabeni@redhat.com> - 2016-06-15 15:50 +0200
Re: [PATCH 3/5] sched/preempt: cond_resched_softirq() must check for softirq Peter Zijlstra <peterz@infradead.org> - 2016-06-15 15:50 +0200
Re: [PATCH 3/5] sched/preempt: cond_resched_softirq() must check for softirq Paolo Abeni <pabeni@redhat.com> - 2016-06-15 16:10 +0200
csiph-web