]> 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)
commitd69dbefe05817759751a9c4a61a788a3f1d138af
tree6bd313ae72605abde4e5b6cd2026b222235725b6
parentf4cc76511950752eaa5ebd17a9a088bacff67ac9
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: 62c17255d3f0 ("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