Commit 7153257
wifi: mt76: Remove RCU section in mt7996_mac_sta_rc_work()
Since mt7996_mcu_add_rate_ctrl() and mt7996_mcu_set_fixed_field() can't
run in atomic context, move RCU critical section in
mt7996_mcu_add_rate_ctrl() and mt7996_mcu_set_fixed_field(). This patch
fixes a 'sleep while atomic' issue in mt7996_mac_sta_rc_work().
Fixes: 0762bdd ("wifi: mt76: mt7996: rework mt7996_mac_sta_rc_work to support MLO")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Tested-by: Ben Greear <greearb@candelatech.com>
Link: https://patch.msgid.link/20250605-mt7996-sleep-while-atomic-v1-5-d46d15f9203c@kernel.org
Signed-off-by: Felix Fietkau <nbd@nbd.name>1 parent 3dd6f67 commit 7153257
1 file changed
+7
-28
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2353 | 2353 | | |
2354 | 2354 | | |
2355 | 2355 | | |
2356 | | - | |
2357 | | - | |
2358 | 2356 | | |
2359 | | - | |
2360 | | - | |
2361 | 2357 | | |
2362 | | - | |
2363 | 2358 | | |
2364 | 2359 | | |
2365 | 2360 | | |
2366 | | - | |
2367 | 2361 | | |
2368 | | - | |
2369 | 2362 | | |
2370 | 2363 | | |
2371 | 2364 | | |
| |||
2376 | 2369 | | |
2377 | 2370 | | |
2378 | 2371 | | |
2379 | | - | |
2380 | | - | |
2381 | | - | |
2382 | | - | |
2383 | | - | |
2384 | | - | |
2385 | | - | |
2386 | | - | |
2387 | | - | |
2388 | | - | |
2389 | | - | |
2390 | | - | |
2391 | | - | |
2392 | | - | |
2393 | | - | |
2394 | | - | |
2395 | | - | |
2396 | | - | |
| 2372 | + | |
| 2373 | + | |
| 2374 | + | |
2397 | 2375 | | |
2398 | 2376 | | |
2399 | 2377 | | |
2400 | 2378 | | |
2401 | 2379 | | |
2402 | 2380 | | |
2403 | 2381 | | |
2404 | | - | |
| 2382 | + | |
| 2383 | + | |
2405 | 2384 | | |
2406 | 2385 | | |
2407 | | - | |
| 2386 | + | |
| 2387 | + | |
2408 | 2388 | | |
2409 | 2389 | | |
2410 | 2390 | | |
2411 | 2391 | | |
2412 | 2392 | | |
2413 | 2393 | | |
2414 | | - | |
2415 | 2394 | | |
2416 | 2395 | | |
2417 | 2396 | | |
| |||
0 commit comments