netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/3] bonding: rcu cleanups
@ 2014-07-15  9:46 Eric Dumazet
  2014-07-15  9:46 ` [PATCH net-next 1/3] bonding: get rid of bond_option_active_slave_get() Eric Dumazet
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Eric Dumazet @ 2014-07-15  9:46 UTC (permalink / raw)
  To: David S. Miller
  Cc: netdev, Jay Vosburgh, Veaceslav Falico, Andy Gospodarek,
	Nikolay Aleksandrov, Mahesh Bandewar, Eric Dumazet

RCU was added to bonding in linux-3.12 but lacked proper sparse annotations.

Using __rcu annotation actually helps to spot all accesses to bond->curr_active_slave
are correctly protected, with full sparse & LOCKDEP support.

Lets clean the code.

Eric Dumazet (3):
  bonding: get rid of bond_option_active_slave_get()
  bonding: use rcu_access_pointer() in bonding_show_mii_status()
  bonding: add proper __rcu annotation for curr_active_slave

 drivers/net/bonding/bond_alb.c     | 47 +++++++++++++++++++--------------
 drivers/net/bonding/bond_main.c    | 53 +++++++++++++++++++++-----------------
 drivers/net/bonding/bond_netlink.c | 21 +++++++++++----
 drivers/net/bonding/bond_options.c |  7 +----
 drivers/net/bonding/bond_sysfs.c   |  3 ++-
 drivers/net/bonding/bonding.h      |  7 +++--
 6 files changed, 81 insertions(+), 57 deletions(-)

-- 
2.0.0.526.g5318336

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2014-07-15 11:51 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-15  9:46 [PATCH net-next 0/3] bonding: rcu cleanups Eric Dumazet
2014-07-15  9:46 ` [PATCH net-next 1/3] bonding: get rid of bond_option_active_slave_get() Eric Dumazet
2014-07-15 10:24   ` Veaceslav Falico
2014-07-15  9:46 ` [PATCH net-next 2/3] bonding: use rcu_access_pointer() in bonding_show_mii_status() Eric Dumazet
2014-07-15 10:32   ` Veaceslav Falico
2014-07-15  9:46 ` [PATCH net-next 3/3] bonding: add proper __rcu annotation for curr_active_slave Eric Dumazet
2014-07-15 10:38   ` Veaceslav Falico
2014-07-15 10:52     ` Eric Dumazet
2014-07-15 11:15       ` Veaceslav Falico
2014-07-15 10:55 ` [PATCH net-next 0/3] bonding: rcu cleanups Nikolay Aleksandrov
2014-07-15 11:51   ` Eric Dumazet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).