diff options
author | Martin Blumenstingl <[email protected]> | 2023-01-08 22:13:24 +0100 |
---|---|---|
committer | Kalle Valo <[email protected]> | 2023-01-16 18:27:44 +0200 |
commit | 2931978cd74f4a643deeea5b211523001d95aa44 (patch) | |
tree | 0200dde1b36c8313eaf25be3730c535b9554a9b0 /tools/testing/selftests/bpf/prog_tests/autoload.c | |
parent | 313f6dc7c5ed723d0c5691553eff4c0090f16bb8 (diff) |
wifi: rtw88: Use non-atomic sta iterator in rtw_ra_mask_info_update()
USB and (upcoming) SDIO support may sleep in the read/write handlers.
Use non-atomic rtw_iterate_stas() in rtw_ra_mask_info_update() because
the iterator function rtw_ra_mask_info_update_iter() needs to read and
write registers from within rtw_update_sta_info(). Using the non-atomic
iterator ensures that we can sleep during USB and SDIO register reads
and writes. This fixes "scheduling while atomic" or "Voluntary context
switch within RCU read-side critical section!" warnings as seen by SDIO
card users (but it also affects USB cards).
Fixes: 78d5bf925f30 ("wifi: rtw88: iterate over vif/sta list non-atomically")
Suggested-by: Ping-Ke Shih <[email protected]>
Reviewed-by: Ping-Ke Shih <[email protected]>
Tested-by: Sascha Hauer <[email protected]>
Signed-off-by: Martin Blumenstingl <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions