summaryrefslogtreecommitdiff
path: root/include/linux/timerqueue.h
diff options
context:
space:
mode:
authorIdo Schimmel <idosch@nvidia.com>2026-06-03 13:35:22 +0300
committerJakub Kicinski <kuba@kernel.org>2026-06-04 18:11:54 -0700
commit7a188fcc18d4f2ee47dc8aa7468bf17a00fa6926 (patch)
treedad6fade33805a486b2dae238f557731b1d61c98 /include/linux/timerqueue.h
parent2b04834c755884458684fe6b35191c87c3d0293f (diff)
bridge: mcast: Synchronously shutdown port multicast timers
Currently, while four timers are set up during port multicast context initialization, only two are synchronously deleted when the context is de-initialized, just before being deleted. This is fine because the structure containing the multicast context (either a bridge port or a VLAN) is only deleted after an RCU grace period and it will not pass as long as the timers are executing. These timers are also not supposed to do any work at this stage. They acquire the bridge multicast lock, see that the multicast context was disabled and exit. Make the code more explicit and symmetric and synchronously shutdown all four timers when the multicast context is de-initialized. Use timer_shutdown_sync() to guarantee that the timers will not be re-armed given that the containing structure is being deleted. Acked-by: Nikolay Aleksandrov <nikolay@nvidia.com> Signed-off-by: Ido Schimmel <idosch@nvidia.com> Link: https://patch.msgid.link/20260603103522.622411-1-idosch@nvidia.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions