Skip to content

Commit e3d5d70

Browse files
oleremkuba-moo
authored andcommitted
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 #8!!! Fixes: ec4c7e1 ("lan78xx: Introduce NAPI polling support") Signed-off-by: Oleksij Rempel <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent f72a199 commit e3d5d70

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/net/usb/lan78xx.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1501,7 +1501,9 @@ static int lan78xx_link_reset(struct lan78xx_net *dev)
15011501

15021502
lan78xx_rx_urb_submit_all(dev);
15031503

1504+
local_bh_disable();
15041505
napi_schedule(&dev->napi);
1506+
local_bh_enable();
15051507
}
15061508

15071509
return 0;

0 commit comments

Comments
 (0)