usbnet: ratelimit kevent may have been dropped warnings
authorSteve Glendinning <steve.glendinning@shawell.net>
Thu, 8 Nov 2012 06:26:21 +0000 (06:26 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Nov 2012 21:59:32 +0000 (16:59 -0500)
commit9532021da6da48351ce48a079c673df8e3930b4a
tree13c3514760ea7c0c8dce8ce17257fc889239a5db
parent60713a0ca7fd6651b951cc1b4dbd528d1fc0281b
usbnet: ratelimit kevent may have been dropped warnings

when something goes wrong, a flood of these messages can be
generated by usbnet (thousands per second).  This doesn't
generally *help* the condition so this patch ratelimits the
rate of their generation.

There's an underlying problem in usbnet's kevent deferral
mechanism which needs fixing, specifically that events *can*
get dropped and not handled.  This patch doesn't address this,
but just mitigates fallout caused by the current implemention.

Signed-off-by: Steve Glendinning <steve.glendinning@shawell.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/usbnet.c