diff options
author | Nikolay Aleksandrov <nikolay@redhat.com> | 2014-09-11 20:49:25 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-09-13 20:29:07 (GMT) |
commit | b743562819bd97cc7c282e870896bae8016b64b5 (patch) | |
tree | 609840f05bf9dd7c1d6fec0c6e447e305bd866a7 /drivers/net/bonding/bonding.h | |
parent | 1c72cfdc96e63bf975cab514c4ca4d8a661ba0e6 (diff) | |
download | linux-b743562819bd97cc7c282e870896bae8016b64b5.tar.xz |
bonding: convert curr_slave_lock to a spinlock and rename it
curr_slave_lock is now a misleading name, a much better name is
mode_lock as it'll be used for each mode's purposes and it's no longer
necessary to use a rwlock, a simple spinlock is enough.
Suggested-by: Jay Vosburgh <jay.vosburgh@canonical.com>
Signed-off-by: Nikolay Aleksandrov <nikolay@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bonding/bonding.h')
-rw-r--r-- | drivers/net/bonding/bonding.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/bonding/bonding.h b/drivers/net/bonding/bonding.h index 02afdeb..0cda34b 100644 --- a/drivers/net/bonding/bonding.h +++ b/drivers/net/bonding/bonding.h @@ -195,7 +195,7 @@ struct bonding { s32 slave_cnt; /* never change this value outside the attach/detach wrappers */ int (*recv_probe)(const struct sk_buff *, struct bonding *, struct slave *); - rwlock_t curr_slave_lock; + spinlock_t mode_lock; u8 send_peer_notif; u8 igmp_retrans; #ifdef CONFIG_PROC_FS |