Skip to contentSkip to conversation

wifi: iwlwifi: Use request_module_nowait

PATCH Superseded [email protected] 2 participants 2 messages Apr 24, 2024 – Apr 25, 2024 Intel wireless wifi link (iwlwifi)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 wifi: iwlwifi: Use request_module_nowait

From: Ben Greear <[email protected]>

This appears to work around a deadlock regression that came in with the LED merge in 6.9.

The deadlock happens on my system with 24 iwlwifi radios, so maybe it something like all worker threads are busy and some work that needs to complete cannot complete.

For reference, see mail to lkml with subject "6.9.0-rc2+ kernel hangs on boot (bisected, maybe LED related)"

Fixes f5c31bcf604d ("Merge tag 'leds-next-6.9' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/leds")
---
 drivers/net/wireless/intel/iwlwifi/iwl-drv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/intel/iwlwifi/iwl-drv.c +1 -1
index 4696d73c8971..993177e1de27 100644
@@ -1744,7 +1744,7 @@ static void iwl_req_fw_callback(const struct firmware *ucode_raw, void *context)
 	 * or hangs loading.
 	 */
 	if (load_module)
-		request_module("%s", op->name);
+		request_module_nowait("%s", op->name);
 	failure = false;
 	goto free;
 
Signature · 1 line
2.42.0
#1 lore raw
Quoted 11 lines · On Wed, 2024-04-24 at 10:47 -0700, [email protected] wrote:

From: Ben Greear <[email protected]>

This appears to work around a deadlock regression that came in with the LED merge in 6.9.

The deadlock happens on my system with 24 iwlwifi radios, so maybe it something like all worker threads are busy and some work that needs to complete cannot complete.

For reference, see mail to lkml with subject "6.9.0-rc2+ kernel hangs on boot (bisected, maybe LED related)"

You should use a Link: tag with a lore link for that :)

Quoted 3 lines
Fixes f5c31bcf604d ("Merge tag 'leds-next-6.9' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/leds")

And no blank lines between tags, please.

johannes