summaryrefslogtreecommitdiffstats
path: root/net/sched
diff options
context:
space:
mode:
authorBjørn Mork <bjorn@mork.no>2012-09-02 22:26:18 +0000
committerDavid S. Miller <davem@davemloft.net>2012-09-03 13:49:00 -0400
commit85e87870fa18ec9f5df98e2d3b48f3699560a570 (patch)
tree4130f26405eb5cd803b5f553faf8b4c8cb5a8548 /net/sched
parent4c3a5bdae293f75cdf729c6c00124e8489af2276 (diff)
downloadlinux-85e87870fa18ec9f5df98e2d3b48f3699560a570.tar.bz2
net: usbnet: fix softirq storm on suspend
Suspending an open usbnet device results in constant rescheduling of usbnet_bh. commit 65841fd5 "usbnet: handle remote wakeup asap" refactored the usbnet_bh code to allow sharing the urb allocate and submit code with usbnet_resume. In this process, a test for, and immediate return on, ENOLINK from rx_submit was unintentionally dropped. The rx queue will not grow if rx_submit fails, making usbnet_bh reschedule itself. This results in a softirq storm if the error is persistent. rx_submit translates the usb_submit_urb error EHOSTUNREACH into ENOLINK, so this is an expected and persistent error for a suspended device. The old code tested for this condition and avoided rescheduling. Putting this test back. Cc: <stable@vger.kernel.org> # v3.5 Cc: Ming Lei <ming.lei@canonical.com> Cc: Oliver Neukum <oneukum@suse.de> Signed-off-by: Bjørn Mork <bjorn@mork.no> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched')
0 files changed, 0 insertions, 0 deletions