diff --git a/net/sched/sch_generic.c b/net/sched/sch_generic.c index 4250f3cf30e7..19fe5078a8d1 100644 --- a/net/sched/sch_generic.c +++ b/net/sched/sch_generic.c @@ -407,13 +407,8 @@ void __qdisc_run(struct Qdisc *q) int packets; while (qdisc_restart(q, &packets)) { - /* - * Ordered by possible occurrence: Postpone processing if - * 1. we've exceeded packet quota - * 2. another process needs the CPU; - */ quota -= packets; - if (quota <= 0 || need_resched()) { + if (quota <= 0) { __netif_schedule(q); break; }