net: Provide details on watchdog timeout.
Subsystems (3)
This also makes it printed under net_ratelimit instead of WARN_ON_ONCE. The backtrace never helped me much.
---
:100644 100644 2aeb3a4... b52c450... M net/sched/sch_generic.c
net/sched/sch_generic.c | 12 +++++++++--- 1 files changed, 9 insertions(+), 3 deletions(-)
net/sched/sch_generic.c +9 -3
@@ -253,9 +253,15 @@ static void dev_watchdog(unsigned long arg) }if (some_queue_timedout) { -char drivername[64 ]; -WARN_ONCE (1 ,KERN_INFO "NETDEV WATCHDOG: %s (%s): transmit queue %u timed out\n" , - dev->name,netdev_drivername (dev, drivername,64 ), i); +if (net_ratelimit ()) { +char drivername[64 ]; +printk (KERN_INFO "NETDEV WATCHDOG: %s (%s): " +"transmit queue %u timed out" +" trans-start: %lu jiffies: %lu\n" , + dev->name, +netdev_drivername (dev, drivername,64 ), + i, trans_start, jiffies); + } dev->netdev_ops->ndo_tx_timeout (dev); } if (!mod_timer(&dev->watchdog_timer,
Signature · 1 line
1.6.2.5
Quoted 5 lines · On Mon, 9 Aug 2010 12:16:41 -0700 Ben Greear <[email protected]> wrote:
This also makes it printed under
net_ratelimitinstead ofWARN_ON_ONCE. The backtrace never helped me much.Signed-off-by Ben Greear <[email protected]>
Please don't remove the WARN_ because it is used by oops.kernel.org automated tracking.
David Miller
maintainerFrom: Stephen Hemminger <[email protected]>
Date: Mon, 9 Aug 2010 15:28:20 -0400
Quoted 11 lines
Quoted 5 lines · On Mon, 9 Aug 2010 12:16:41 -0700 Ben Greear <[email protected]> wrote:
This also makes it printed under
net_ratelimitinstead ofWARN_ON_ONCE. The backtrace never helped me much.Signed-off-by Ben Greear <[email protected]>Please don't remove the
WARN_because it is used by oops.kernel.org automated tracking.
Yes, please don't change this, there are automated tools that know about what this thing spits out and yes the backtrace needs to be there.