bonding: no longer use RTNL in bonding_show_queue_id()
authorEric Dumazet <edumazet@google.com>
Mon, 8 Apr 2024 19:04:37 +0000 (19:04 +0000)
committerJakub Kicinski <kuba@kernel.org>
Wed, 10 Apr 2024 00:31:45 +0000 (17:31 -0700)
commit662e451d9a6224ff7fbec8e94c2da75b93258df3
treec46b6b66eb2ed9ecf7307bbbf6b7ef45eb12bf56
parentd67fed98caa1f3c517fd6af7b8f044d05f9e3e5d
bonding: no longer use RTNL in bonding_show_queue_id()

Annotate lockless reads of slave->queue_id.

Annotate writes of slave->queue_id.

Switch bonding_show_queue_id() to rcu_read_lock()
and bond_for_each_slave_rcu().

Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Jay Vosburgh <jay.vosburgh@canonical.com>
Link: https://lore.kernel.org/r/20240408190437.2214473-4-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/bonding/bond_main.c
drivers/net/bonding/bond_netlink.c
drivers/net/bonding/bond_options.c
drivers/net/bonding/bond_procfs.c
drivers/net/bonding/bond_sysfs.c
drivers/net/bonding/bond_sysfs_slave.c