ipv6: remove aca_lock spinlock from struct ifacaddr6
authorLi RongQing <roy.qing.li@gmail.com>
Sat, 11 Oct 2014 05:03:34 +0000 (13:03 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Oct 2014 17:15:15 +0000 (13:15 -0400)
no user uses this lock.

Signed-off-by: Li RongQing <roy.qing.li@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/if_inet6.h
net/ipv6/anycast.c

index 55a8d40..98e5f95 100644 (file)
@@ -146,7 +146,6 @@ struct ifacaddr6 {
        struct ifacaddr6        *aca_next;
        int                     aca_users;
        atomic_t                aca_refcnt;
-       spinlock_t              aca_lock;
        unsigned long           aca_cstamp;
        unsigned long           aca_tstamp;
 };
index f5e319a..baf2742 100644 (file)
@@ -235,7 +235,6 @@ static struct ifacaddr6 *aca_alloc(struct rt6_info *rt,
        /* aca_tstamp should be updated upon changes */
        aca->aca_cstamp = aca->aca_tstamp = jiffies;
        atomic_set(&aca->aca_refcnt, 1);
-       spin_lock_init(&aca->aca_lock);
 
        return aca;
 }