diff options
author | David S. Miller <davem@davemloft.net> | 2008-07-16 02:15:04 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-07-17 19:21:20 -0700 |
commit | 37437bb2e1ae8af470dfcd5b4ff454110894ccaf (patch) | |
tree | 1795e78a7648252b0c92c972df12b776a28437d7 /net/sched/sch_cbq.c | |
parent | 7698b4fcabcd790efc4f226bada1e7b5870653af (diff) | |
download | kernel_samsung_smdk4412-37437bb2e1ae8af470dfcd5b4ff454110894ccaf.zip kernel_samsung_smdk4412-37437bb2e1ae8af470dfcd5b4ff454110894ccaf.tar.gz kernel_samsung_smdk4412-37437bb2e1ae8af470dfcd5b4ff454110894ccaf.tar.bz2 |
pkt_sched: Schedule qdiscs instead of netdev_queue.
When we have shared qdiscs, packets come out of the qdiscs
for multiple transmit queues.
Therefore it doesn't make any sense to schedule the transmit
queue when logically we cannot know ahead of time the TX
queue of the SKB that the qdisc->dequeue() will give us.
Just for sanity I added a BUG check to make sure we never
get into a state where the noop_qdisc is scheduled.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/sch_cbq.c')
-rw-r--r-- | net/sched/sch_cbq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sched/sch_cbq.c b/net/sched/sch_cbq.c index 37ae653..a3953bb 100644 --- a/net/sched/sch_cbq.c +++ b/net/sched/sch_cbq.c @@ -650,7 +650,7 @@ static enum hrtimer_restart cbq_undelay(struct hrtimer *timer) } sch->flags &= ~TCQ_F_THROTTLED; - netif_schedule_queue(sch->dev_queue); + __netif_schedule(sch); return HRTIMER_NORESTART; } |