Skip to content
Commit baf33d7a authored by Hayes Wang's avatar Hayes Wang Committed by David S. Miller
Browse files

r8152: avoid to resubmit rx immediately



For the situation that the disconnect event comes very late when the
device is unplugged, the driver would resubmit the RX bulk transfer
after getting the callback with -EPROTO immediately and continually.
Finally, soft lockup occurs.

This patch avoids to resubmit RX immediately. It uses a workqueue to
schedule the RX NAPI. And the NAPI would resubmit the RX. It let the
disconnect event have opportunity to stop the submission before soft
lockup.

Reported-by: default avatarJason-ch Chen <jason-ch.chen@mediatek.com>
Tested-by: default avatarJason-ch Chen <jason-ch.chen@mediatek.com>
Signed-off-by: default avatarHayes Wang <hayeswang@realtek.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 3f6cffb8
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment