iwlwifi: pcie: Disable softirqs during Rx queue init
authorIlan Peer <ilan.peer@intel.com>
Fri, 5 Feb 2021 09:06:40 +0000 (11:06 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 5 Feb 2021 10:00:13 +0000 (12:00 +0200)
commit47ef328c2090cc790c0766094557aedd04ac923f
treeb2eb23a5c9e45a4f65741b4711da6e39dd2a08d7
parentdf8ba77ef4cc58e0bd5e0477211b01028cc0f3cc
iwlwifi: pcie: Disable softirqs during Rx queue init

When Rx queues are configured during module init, NAPI is enabled
while the Rx queue lock is held. However, since softirqs are not
disabled, it is possible that and IRQ would fire and call
iwl_pcie_rx_handle() which would also try to acquire the Rx lock.

Prevent this by disabling softirqs during Rx queue configuration,
as part of module init flow.

Signed-off-by: Ilan Peer <ilan.peer@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20210205110447.d206ac428823.Ia19339efb09f9d80143f0d0e398a158180754cfa@changeid
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/pcie/rx.c