summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorWolfgang Grandegger <wg@grandegger.com>2017-09-14 18:37:14 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-10-27 10:23:16 +0200
commitd68b07a19a9ed71a60ffe28cf0a8aa5988dcdc5e (patch)
tree79a56443312620373f4e0d7d84ab441e5fca89a7 /tools/perf/scripts/python
parentf7d8b2e150eeb16646e398f90d7506dc84d8a32d (diff)
can: gs_usb: fix busy loop if no more TX context is available
commit 97819f943063b622eca44d3644067c190dc75039 upstream. If sending messages with no cable connected, it quickly happens that there is no more TX context available. Then "gs_can_start_xmit()" returns with "NETDEV_TX_BUSY" and the upper layer does retry immediately keeping the CPU busy. To fix that issue, I moved "atomic_dec(&dev->active_tx_urbs)" from "gs_usb_xmit_callback()" to the TX done handling in "gs_usb_receive_bulk_callback()". Renaming "active_tx_urbs" to "active_tx_contexts" and moving it into "gs_[alloc|free]_tx_context()" would also make sense. Signed-off-by: Wolfgang Grandegger <wg@grandegger.com> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions