]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: fw: fix notification wait locking
authorJohannes Berg <johannes.berg@intel.com>
Fri, 26 Mar 2021 10:57:20 +0000 (12:57 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 6 Apr 2021 10:25:59 +0000 (13:25 +0300)
commit9c04fd95fa830d60e5bdb08bcd7ff68d7e120e5b
tree6bd313ae72605abde4e5b6cd2026b222235725b6
parent97195d3cad852063208a1cd4f4d073459547a415
iwlwifi: fw: fix notification wait locking

Since we now call iwl_notification_wait_notify() from the
NAPI poll in soft-IRQ, we get a (valid) lockdep complaint
that we could get a deadlock by taking the spinlock from
sleeping context and then getting the soft-IRQ that also
tries to take it (in NAPI polling).

Fix this by disabling soft-IRQs for this lock.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Fixes: 25edc8f259c7 ("iwlwifi: pcie: properly implement NAPI")
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/iwlwifi.20210326125611.c3b2e3d6b58b.Ic56f351d04674df70567bab0269cba91bdbc853c@changeid
drivers/net/wireless/intel/iwlwifi/fw/notif-wait.c