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 55a8d4056cc9123ee0422e49abf6bd4f98845045..98e5f9578f862abb894190ca729e0f4613e1a8fa 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 f5e319a8d4e2ed1a6d4fc13524e5a6d703706eef..baf2742d1ec47ee1b9cf62d087afb8b7d7195921 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;
 }