From: Eric Dumazet Subject: [PATCH v2 net-next 0/4] bonding: rcu cleanups Date: Tue, 15 Jul 2014 06:56:52 -0700 Message-ID: <1405432616-12414-1-git-send-email-edumazet@google.com> Cc: netdev@vger.kernel.org, Jay Vosburgh , Veaceslav Falico , Andy Gospodarek , Nikolay Aleksandrov , Mahesh Bandewar , Eric Dumazet To: "David S. Miller" Return-path: Received: from mail-pa0-f73.google.com ([209.85.220.73]:39665 "EHLO mail-pa0-f73.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751086AbaGON47 (ORCPT ); Tue, 15 Jul 2014 09:56:59 -0400 Received: by mail-pa0-f73.google.com with SMTP id kx10so1041484pab.2 for ; Tue, 15 Jul 2014 06:56:58 -0700 (PDT) Sender: netdev-owner@vger.kernel.org List-ID: 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 & cond->current_arp_slave are correctly protected, with full sparse & LOCKDEP support. Lets clean the code. Eric Dumazet (4): 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 bonding: add proper __rcu annotation for current_arp_slave drivers/net/bonding/bond_alb.c | 47 +++++++++++++++----------- drivers/net/bonding/bond_main.c | 68 +++++++++++++++++++++----------------- 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 | 9 +++-- 6 files changed, 91 insertions(+), 64 deletions(-) -- 2.0.0.526.g5318336