Skip to contentSkip to conversation

ipv6: remove aca_lock spinlock from struct ifacaddr6

PATCH Applied [email protected] 2 participants 2 messages Oct 11, 2014 – Oct 14, 2014

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ipv6: remove aca_lock spinlock from struct ifacaddr6

From: Li RongQing <[email protected]>

no user uses this lock.

---
 include/net/if_inet6.h |    1 -
 net/ipv6/anycast.c     |    1 -
 2 files changed, 2 deletions(-)
include/net/if_inet6.h +0 -1
index 55a8d40..98e5f95 100644
@@ -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;
 };
net/ipv6/anycast.c +0 -1
index f5e319a..baf2742 100644
@@ -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;
 }
Signature · 1 line
1.7.10.4