Re: [PATCH 1/2] ipv6: rework the lock in addrconf_permanent_addr

2016-04-01 Thread David Miller
From: roy.qing...@gmail.com Date: Fri, 1 Apr 2016 17:26:58 +0800 > From: Li RongQing > > 1. nothing of idev is changed, so read lock is enough > 2. ifp is changed, so used ifp->lock or cmpxchg to protect it > > Signed-off-by: Li RongQing You posted this patch twice and didn't post patch 2/2.

[PATCH 1/2] ipv6: rework the lock in addrconf_permanent_addr

2016-04-01 Thread roy . qing . li
From: Li RongQing 1. nothing of idev is changed, so read lock is enough 2. ifp is changed, so used ifp->lock or cmpxchg to protect it Signed-off-by: Li RongQing --- net/ipv6/addrconf.c | 26 -- 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/net/ipv6/addr

[PATCH 1/2] ipv6: rework the lock in addrconf_permanent_addr

2016-04-01 Thread roy . qing . li
From: Li RongQing 1. nothing of idev is changed, so read lock is enough 2. ifp is changed, so used ifp->lock or cmpxchg to protect it Signed-off-by: Li RongQing --- net/ipv6/addrconf.c | 26 -- 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/net/ipv6/addr