net: wireless: rockchip_wlan: Add missing BH locking around __napi_schdule()

The following errors are seen when wifi is running:
NOHZ tick-stop error: Non-RCU local softirq work is pending, handler #08!!!

Fix this problem by adding the BH locking around __napi_schedule, in the same way
it was done in commit e63052a5dd ("mlx5e: add add missing BH locking around napi_schdule()").

Change-Id: I25544b52460639ba95d3cbdd9644ab95f01a2654
Signed-off-by: Wenping Zhang <wenping.zhang@rock-chips.com>
This commit is contained in:
Wenping Zhang
2024-09-20 11:25:47 +08:00
committed by Tao Huang
parent b0ca1b7b89
commit 20e277459e

View File

@@ -1131,6 +1131,7 @@ dhd_napi_schedule(void *info)
DHD_GENERAL_UNLOCK(&dhd->pub, flags);
#endif /* OEM_ANDROID */
local_bh_disable();
/* add napi_struct to softnet data poll list and raise NET_RX_SOFTIRQ */
if (napi_schedule_prep(&dhd->rx_napi_struct)) {
@@ -1151,6 +1152,7 @@ dhd_napi_schedule(void *info)
raise_softirq(NET_RX_SOFTIRQ);
#endif /* WAKEUP_KSOFTIRQD_POST_NAPI_SCHEDULE */
}
local_bh_enable();
/*
* If the rx_napi_struct was already running, then we let it complete