]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: iwlwifi: keep BHs disabled when TXing from reclaim
authorBenjamin Berg <benjamin.berg@intel.com>
Wed, 3 Jul 2024 09:58:56 +0000 (12:58 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 4 Jul 2024 11:50:05 +0000 (13:50 +0200)
commit1a3364e963989dbcd1465dd8e94d9c5babd3474a
tree1b051405911fc645e6cd3245b7e6c64db2fc98fe
parent90db50755228252f94b143bbf2380242688b1104
wifi: iwlwifi: keep BHs disabled when TXing from reclaim

During reclaim, we may release the txq->lock spinlock in order to call
iwl_trans_tx to queue new frames. The iwl_trans_tx function expects to
be called with BHs disabled and iwl_pcie_reclaim is most of the times
called with BHs disabled already. However, reclaim can also happen after
flushing a STA and in that case BHs will not be disabled.

Solve this corner case by only releasing the spinlock but keeping BHs
disabled.

Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
Reviewed-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20240703125541.5d12e0e54e9f.Ic53a7ff75f1163eb38bdcf5d66b503e91e6ce5ca@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/pcie/tx.c