ソースを参照

qcacld-3.0: Increase timeout for vdev_del_event

Race condition occurred as rx_thread did not get scheduled
before timeout and gro flush happened in vdev context. At
the same time, rx thread got scheduled and add skb to the
napi queue resulting in crash.
To fix this, Increase the timeout value so rx_thread gets
time to wake up, do gro flush and reset the vdev_del_event.

Change-Id: I2075eda91b1568cce3083869f510fc212dd721f8
CRs-Fixed: 2949803
Ananya Gupta 3 年 前
コミット
c5ab429e08
1 ファイル変更4 行追加0 行削除
  1. 4 0
      core/dp/txrx3.0/dp_rx_thread.c

+ 4 - 0
core/dp/txrx3.0/dp_rx_thread.c

@@ -25,7 +25,11 @@
 #include <cds_sched.h>
 
 /* Timeout in ms to wait for a DP rx thread */
+#ifdef HAL_CONFIG_SLUB_DEBUG_ON
+#define DP_RX_THREAD_WAIT_TIMEOUT 4000
+#else
 #define DP_RX_THREAD_WAIT_TIMEOUT 2000
+#endif
 
 #define DP_RX_TM_DEBUG 0
 #if DP_RX_TM_DEBUG