All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ipv6: remove aca_lock spinlock from struct ifacaddr6
@ 2014-10-11  5:03 roy.qing.li
  2014-10-14 17:16 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: roy.qing.li @ 2014-10-11  5:03 UTC (permalink / raw)
  To: netdev

From: Li RongQing <roy.qing.li@gmail.com>

no user uses this lock.

Signed-off-by: Li RongQing <roy.qing.li@gmail.com>
---
 include/net/if_inet6.h |    1 -
 net/ipv6/anycast.c     |    1 -
 2 files changed, 2 deletions(-)

diff --git a/include/net/if_inet6.h b/include/net/if_inet6.h
index 55a8d40..98e5f95 100644
--- a/include/net/if_inet6.h
+++ b/include/net/if_inet6.h
@@ -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;
 };
diff --git a/net/ipv6/anycast.c b/net/ipv6/anycast.c
index f5e319a..baf2742 100644
--- a/net/ipv6/anycast.c
+++ b/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->aca_cstamp = aca->aca_tstamp = jiffies;
 	atomic_set(&aca->aca_refcnt, 1);
-	spin_lock_init(&aca->aca_lock);
 
 	return aca;
 }
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] ipv6: remove aca_lock spinlock from struct ifacaddr6
  2014-10-11  5:03 [PATCH] ipv6: remove aca_lock spinlock from struct ifacaddr6 roy.qing.li
@ 2014-10-14 17:16 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2014-10-14 17:16 UTC (permalink / raw)
  To: roy.qing.li; +Cc: netdev

From: roy.qing.li@gmail.com
Date: Sat, 11 Oct 2014 13:03:34 +0800

> From: Li RongQing <roy.qing.li@gmail.com>
> 
> no user uses this lock.
> 
> Signed-off-by: Li RongQing <roy.qing.li@gmail.com>

Applied, thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-10-14 17:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-11  5:03 [PATCH] ipv6: remove aca_lock spinlock from struct ifacaddr6 roy.qing.li
2014-10-14 17:16 ` David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.