Skip to content

Commit

Permalink
net: lan78xx: fix "softirq work is pending" error
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
olerem authored and kuba-moo committed Feb 28, 2024
1 parent f72a199 commit e3d5d70
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/net/usb/lan78xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e3d5d70

Please sign in to comment.