Commit 1d8476b
committed
eth: via-rhine: fix calling napi_enable() in atomic context
JIRA: https://issues.redhat.com/browse/RHEL-87382
commit 09a9394
Author: Jakub Kicinski <kuba@kernel.org>
Date: Thu Jan 23 19:18:40 2025 -0800
eth: via-rhine: fix calling napi_enable() in atomic context
napi_enable() may sleep now, take netdev_lock() before rp->lock.
napi_enable() is hidden inside init_registers().
Note that this patch orders netdev_lock after rp->task_lock,
to avoid having to take the netdev_lock() around disable path.
Fixes: 413f027 ("net: protect NAPI enablement with netdev_lock()")
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/dcfd56bc-de32-4b11-9e19-d8bd1543745d@stanley.mountain
Reviewed-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20250124031841.1179756-7-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Mohammad Heib <mheib@redhat.com>1 parent 673466e commit 1d8476b
1 file changed
+10
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1571 | 1571 | | |
1572 | 1572 | | |
1573 | 1573 | | |
1574 | | - | |
| 1574 | + | |
1575 | 1575 | | |
1576 | 1576 | | |
1577 | 1577 | | |
| |||
1699 | 1699 | | |
1700 | 1700 | | |
1701 | 1701 | | |
| 1702 | + | |
| 1703 | + | |
1702 | 1704 | | |
| 1705 | + | |
1703 | 1706 | | |
1704 | 1707 | | |
1705 | 1708 | | |
| |||
1730 | 1733 | | |
1731 | 1734 | | |
1732 | 1735 | | |
| 1736 | + | |
| 1737 | + | |
1733 | 1738 | | |
1734 | 1739 | | |
1735 | 1740 | | |
| |||
1743 | 1748 | | |
1744 | 1749 | | |
1745 | 1750 | | |
| 1751 | + | |
1746 | 1752 | | |
1747 | 1753 | | |
1748 | 1754 | | |
| |||
2546 | 2552 | | |
2547 | 2553 | | |
2548 | 2554 | | |
| 2555 | + | |
| 2556 | + | |
2549 | 2557 | | |
2550 | 2558 | | |
2551 | 2559 | | |
| 2560 | + | |
2552 | 2561 | | |
2553 | 2562 | | |
2554 | 2563 | | |
| |||
0 commit comments