]> git.baikalelectronics.ru Git - kernel.git/commit
bonding: add proper __rcu annotation for curr_active_slave
authorEric Dumazet <edumazet@google.com>
Tue, 15 Jul 2014 13:56:55 +0000 (06:56 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Jul 2014 00:49:42 +0000 (17:49 -0700)
commita693ab27c5356815cc49d26d26d1add1bc66890f
tree4f607b2f834ba4f547312136316d606d62fcdac0
parent1ba3bf4e60694172f098352c127679f89640a5a0
bonding: add proper __rcu annotation for curr_active_slave

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 LOCKDEP support.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Veaceslav Falico <vfalico@gmail.com>
Reviewed-by: Nikolay Aleksandrov <nikolay@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_alb.c
drivers/net/bonding/bond_main.c
drivers/net/bonding/bond_options.c
drivers/net/bonding/bonding.h