]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
batman-adv: replace non-atomic mesh state with (READ|WRITE)_ONCE
authorSven Eckelmann <sven@narfation.org>
Tue, 12 May 2026 17:37:05 +0000 (19:37 +0200)
committerSven Eckelmann <sven@narfation.org>
Mon, 1 Jun 2026 12:22:01 +0000 (14:22 +0200)
commit2b2450e3266ad01feb5ad0adb6ec3cd5b830c511
tree2c3869dc04b3618dd6f43933432c5e68c3c539eb
parent26f8f9f9379bb059fce6325ce87fe881f834fab3
batman-adv: replace non-atomic mesh state with (READ|WRITE)_ONCE

The mesh state is only accessed as plain loads/stores and does not require
full atomic_t semantics. Convert to an enum and replace its users with
READ_ONCE()/WRITE_ONCE() to avoid load/store tearing.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
net/batman-adv/bat_iv_ogm.c
net/batman-adv/bat_v_elp.c
net/batman-adv/bat_v_ogm.c
net/batman-adv/main.c
net/batman-adv/mesh-interface.c
net/batman-adv/send.c
net/batman-adv/tp_meter.c
net/batman-adv/types.h