[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20080818.013954.187452037.davem@davemloft.net>
Date: Mon, 18 Aug 2008 01:39:54 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: netdev@...r.kernel.org
CC: jarkao2@...il.com
Subject: [PATCH]: Schedule correct qdisc in watchdog.
Jarek, I bet this is what was causing the crash you were trying to fix
yesterday.
But that's just my newbie hunch :-)
pkt_sched: Never scheduler non-root qdiscs.
The qdisc watchdogs can be attached to any qdisc,
not just the root, so make sure we schedule the
correct one.
Signed-off-by: David S. Miller <davem@...emloft.net>
diff --git a/net/sched/sch_api.c b/net/sched/sch_api.c
index c8dc72e..98c0084 100644
--- a/net/sched/sch_api.c
+++ b/net/sched/sch_api.c
@@ -426,7 +426,7 @@ static enum hrtimer_restart qdisc_watchdog(struct hrtimer *timer)
wd->qdisc->flags &= ~TCQ_F_THROTTLED;
smp_wmb();
- __netif_schedule(wd->qdisc);
+ __netif_schedule(qdisc_root(wd->qdisc));
return HRTIMER_NORESTART;
}
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists