Re: [RFC PATCH] [IPV6] ADDRCONF: Convert addrconf_lock to RCU.

2006-05-05 Thread YOSHIFUJI Hideaki / 吉藤英明
In article <[EMAIL PROTECTED]> (at Fri, 05 May 2006 17:40:11 -0700 (PDT)), "David S. Miller" <[EMAIL PROTECTED]> says: > From: YOSHIFUJI Hideaki <[EMAIL PROTECTED]> > Date: Fri, 05 May 2006 12:24:52 +0900 (JST) > > > Signed-off-by: YOSHIFUJI Hideaki <[EMAIL PROTECTED]> > > It is critical that w

Re: [RFC PATCH] [IPV6] ADDRCONF: Convert addrconf_lock to RCU.

2006-05-05 Thread David S. Miller
From: YOSHIFUJI Hideaki <[EMAIL PROTECTED]> Date: Fri, 05 May 2006 12:24:52 +0900 (JST) > Signed-off-by: YOSHIFUJI Hideaki <[EMAIL PROTECTED]> It is critical that we free the inet6 device structure using an RCU callback in order for this locking strategy to work. An RCU head needs to be added to

Re: [RFC PATCH] [IPV6] ADDRCONF: Convert addrconf_lock to RCU.

2006-05-04 Thread Herbert Xu
YOSHIFUJI Hideaki / <[EMAIL PROTECTED]> wrote: > > @@ -2291,10 +2287,9 @@ static int addrconf_ifdown(struct net_de > Do not dev_put! > */ >if (how == 1) { > - write_lock_bh(&addrconf_lock); > - dev->ip6_ptr = NULL; > -

[RFC PATCH] [IPV6] ADDRCONF: Convert addrconf_lock to RCU.

2006-05-04 Thread YOSHIFUJI Hideaki / 吉藤英明
Signed-off-by: YOSHIFUJI Hideaki <[EMAIL PROTECTED]> diff --git a/include/net/addrconf.h b/include/net/addrconf.h index 750e250..74dca37 100644 --- a/include/net/addrconf.h +++ b/include/net/addrconf.h @@ -127,20 +127,18 @@ extern int unregister_inet6addr_notifier static inline struct inet6_dev *