]> git.baikalelectronics.ru Git - kernel.git/commit
net: Add a WARN_ON_ONCE() to the transmit timeout function
authorArjan van de Ven <arjan@linux.intel.com>
Fri, 2 May 2008 23:21:07 +0000 (16:21 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 May 2008 23:21:07 +0000 (16:21 -0700)
commitf5dd377733f2e187f42071496582b846eae20809
tree37d4e4ecea52e85e561d29faca0f5db5804348d3
parent1f403c6bf41adb6c00b91efa2ca71b4c571d1c72
net: Add a WARN_ON_ONCE() to the transmit timeout function

WARN_ON_ONCE() gives a stack trace including the full module list.
Having this in the kernel dump for the timeout case in the
generic netdev watchdog will help us see quicker which driver
is involved. It also allows us to collect statistics
and patterns in terms of which drivers have this event occuring.

Suggested by Andrew Morton

Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_generic.c