]> 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)
commit7a3d805e8e5093af92d6a8abcaeb26e3eb066490
tree6bd313ae72605abde4e5b6cd2026b222235725b6
parenta12a0d5b0f48a3ab8542b59e0ac071061355315b
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: 493b53f1879a ("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