summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOleksij Rempel <o.rempel@pengutronix.de>2024-02-26 14:08:20 +0300
committerJakub Kicinski <kuba@kernel.org>2024-02-28 05:21:51 +0300
commite3d5d70cb483df8296dd44e9ae3b6355ef86494c (patch)
treead0520ca11d7cc8612e16aefd4014ce39cb97bda
parentf72a1994698ebe1a9eeadba7bfe2aa01afcde0a4 (diff)
downloadlinux-e3d5d70cb483df8296dd44e9ae3b6355ef86494c.tar.xz
net: lan78xx: fix "softirq work is pending" error
Disable BH around the call to napi_schedule() to avoid following error: NOHZ tick-stop error: local softirq work is pending, handler #08!!! Fixes: ec4c7e12396b ("lan78xx: Introduce NAPI polling support") Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> Link: https://lore.kernel.org/r/20240226110820.2113584-1-o.rempel@pengutronix.de Signed-off-by: Jakub Kicinski <kuba@kernel.org>
-rw-r--r--drivers/net/usb/lan78xx.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/usb/lan78xx.c b/drivers/net/usb/lan78xx.c
index e06193e831a5..ba6c8ac2a736 100644
--- a/drivers/net/usb/lan78xx.c
+++ b/drivers/net/usb/lan78xx.c
@@ -1501,7 +1501,9 @@ static int lan78xx_link_reset(struct lan78xx_net *dev)
lan78xx_rx_urb_submit_all(dev);
+ local_bh_disable();
napi_schedule(&dev->napi);
+ local_bh_enable();
}
return 0;