summaryrefslogtreecommitdiff
path: root/include/linux/assoc_array.h
diff options
context:
space:
mode:
authorTonghao Zhang <tonghao@bamaicloud.com>2026-01-18 07:21:12 +0300
committerPaolo Abeni <pabeni@redhat.com>2026-01-22 13:20:33 +0300
commit70fc6649b36cf22167bbd7e2a6cc0960b746316e (patch)
treee841317781a5bc0458fb111b72f4b564e803b7c7 /include/linux/assoc_array.h
parent11ea9b8a88dd7524c23dffc22d8173504273a9db (diff)
downloadlinux-70fc6649b36cf22167bbd7e2a6cc0960b746316e.tar.xz
net: bonding: move bond_should_notify_peers, e.g. into rtnl lock block
This patch tries to avoid the possible peer notify event loss. In bond_mii_monitor()/bond_activebackup_arp_mon(), when we hold the rtnl lock: - check send_peer_notif again to avoid unconditionally reducing this value. - send_peer_notif may have been reset. Therefore, it is necessary to check whether to send peer notify via bond_should_notify_peers() to avoid the loss of notification events. Cc: Jay Vosburgh <jv@jvosburgh.net> Cc: "David S. Miller" <davem@davemloft.net> Cc: Eric Dumazet <edumazet@google.com> Cc: Jakub Kicinski <kuba@kernel.org> Cc: Paolo Abeni <pabeni@redhat.com> Cc: Simon Horman <horms@kernel.org> Cc: Jonathan Corbet <corbet@lwn.net> Cc: Andrew Lunn <andrew+netdev@lunn.ch> Cc: Nikolay Aleksandrov <razor@blackwall.org> Cc: Hangbin Liu <liuhangbin@gmail.com> Cc: Jason Xing <kerneljasonxing@gmail.com> Signed-off-by: Tonghao Zhang <tonghao@bamaicloud.com> Reviewed-by: Hangbin Liu <liuhangbin@gmail.com> Link: https://patch.msgid.link/78cef328822b94638c97638b89011c507b8bf19e.1768709239.git.tonghao@bamaicloud.com Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'include/linux/assoc_array.h')
0 files changed, 0 insertions, 0 deletions