| Submitter | Lennert Buytenhek |
|---|---|
| Date | Nov. 1, 2008, 5:48 a.m. |
| Message ID | <20081101054859.GB13348@xi.wantstofly.org> |
| Download | mbox | patch |
| Permalink | /patch/6771/ |
| State | Not Applicable |
| Delegated to: | Jeff Garzik |
| Headers | show |
Comments
Patch
diff --git a/kernel/softirq.c b/kernel/softirq.c index c506f26..f7fd630 100644 --- a/kernel/softirq.c +++ b/kernel/softirq.c @@ -215,7 +215,7 @@ restart: local_irq_disable(); pending = local_softirq_pending(); - if (pending && --max_restart) + if (pending && !need_resched() && --max_restart) goto restart; if (pending)