android_kernel_xiaomi_sm8350/core
Sandeep Puligilla a8d4eec7d9 qcacld-3.0: Fix to avoid acquiring mutex in atomic context
Propagation from qcacld-2.0 to qcacld-3.0

When a radar is indicated from WMA to HDD,  it happens in a soft
irq context and the dfs_radar_found flag is set by acquiring
a mutex which leads to apps crash.  The crash happens if the mutex for
dfs_radar_found flag is being held by the main thread and as a result
the soft irq thread seeking the same mutex will be put in the kernel
sleep queue leading to apps crash as sleeping is not allowed in soft irq
context.

Fix the issue by using spinlock instead of mutexes.  An exception
has been made to use the spinlock in the main thread context to
work around the complications involving for radar indication
callback to happen in worker thread context instead of soft
irq context.

Change-Id: I4bc01ac8991c593ffcaf6ee532f4594cb8beba16
CRs-Fixed: 928394
2016-07-06 13:32:53 -07:00
..
bmi qcacld-3.0: Add NULL checks before dereferencing 2016-07-06 13:30:39 -07:00
cds qcacld-3.0: Disallow STA+SAP+P2P concurrency scenarios 2016-07-06 13:30:34 -07:00
dp qcacld-3.0: Add NULL checks before dereferencing 2016-07-06 13:30:39 -07:00
hdd qcacld-3.0: Fix to avoid acquiring mutex in atomic context 2016-07-06 13:32:53 -07:00
mac qcacld-3.0: Add check for NDI role in __lim_fresh_scan_reqd 2016-07-06 13:31:59 -07:00
pld qcacld-3.0: Fix compilation error in 4.4v Kernel 2016-06-14 14:28:50 -07:00
sap qcacld-3.0: Remove deprecated gPolicyManagerEnable INI item 2016-07-06 13:30:12 -07:00
sme qcacld-3.0: Add NDP reason codes in deferred rsp sent for NDP commands 2016-07-06 13:31:56 -07:00
utils qcacld-3.0: Add NULL checks before dereferencing 2016-07-06 13:30:39 -07:00
wma qcacld-3.0: Add NDP reason codes in deferred rsp sent for NDP commands 2016-07-06 13:31:56 -07:00