Browse Source

ipv6: remove aca_lock spinlock from struct ifacaddr6

no user uses this lock.

Signed-off-by: Li RongQing <roy.qing.li@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Li RongQing 10 years ago
parent
commit
02ea80741a
2 changed files with 0 additions and 2 deletions
  1. 0 1
      include/net/if_inet6.h
  2. 0 1
      net/ipv6/anycast.c

+ 0 - 1
include/net/if_inet6.h

@@ -146,7 +146,6 @@ struct ifacaddr6 {
 	struct ifacaddr6	*aca_next;
 	struct ifacaddr6	*aca_next;
 	int			aca_users;
 	int			aca_users;
 	atomic_t		aca_refcnt;
 	atomic_t		aca_refcnt;
-	spinlock_t		aca_lock;
 	unsigned long		aca_cstamp;
 	unsigned long		aca_cstamp;
 	unsigned long		aca_tstamp;
 	unsigned long		aca_tstamp;
 };
 };

+ 0 - 1
net/ipv6/anycast.c

@@ -235,7 +235,6 @@ static struct ifacaddr6 *aca_alloc(struct rt6_info *rt,
 	/* aca_tstamp should be updated upon changes */
 	/* aca_tstamp should be updated upon changes */
 	aca->aca_cstamp = aca->aca_tstamp = jiffies;
 	aca->aca_cstamp = aca->aca_tstamp = jiffies;
 	atomic_set(&aca->aca_refcnt, 1);
 	atomic_set(&aca->aca_refcnt, 1);
-	spin_lock_init(&aca->aca_lock);
 
 
 	return aca;
 	return aca;
 }
 }