[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240408190437.2214473-1-edumazet@google.com>
Date: Mon, 8 Apr 2024 19:04:34 +0000
From: Eric Dumazet <edumazet@...gle.com>
To: "David S . Miller" <davem@...emloft.net>, Jakub Kicinski <kuba@...nel.org>,
Paolo Abeni <pabeni@...hat.com>
Cc: Jay Vosburgh <j.vosburgh@...il.com>, Andy Gospodarek <andy@...yhouse.net>, netdev@...r.kernel.org,
eric.dumazet@...il.com, Eric Dumazet <edumazet@...gle.com>
Subject: [PATCH net-next 0/3] bonding: remove RTNL from three sysfs files
First patch might fix a potential deadlock.
sysfs handlers should use rtnl_trylock() instead of rtnl_lock().
Following files can be read without acquiring RTNL :
- /sys/class/net/bonding_masters
- /sys/class/net/<name>/bonding/slaves
- /sys/class/net/<name>/bonding/queue_id
Eric Dumazet (3):
bonding: no longer use RTNL in bonding_show_bonds()
bonding: no longer use RTNL in bonding_show_slaves()
bonding: no longer use RTNL in bonding_show_queue_id()
drivers/net/bonding/bond_main.c | 6 +++---
drivers/net/bonding/bond_netlink.c | 3 ++-
drivers/net/bonding/bond_options.c | 2 +-
drivers/net/bonding/bond_procfs.c | 2 +-
drivers/net/bonding/bond_sysfs.c | 25 ++++++++++++-------------
drivers/net/bonding/bond_sysfs_slave.c | 2 +-
6 files changed, 20 insertions(+), 20 deletions(-)
--
2.44.0.478.gd926399ef9-goog
Powered by blists - more mailing lists