| To: | "David S. Miller" <davem@xxxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH] Move inetdev/ifa over to RCU |
| From: | Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> |
| Date: | Sat, 14 Aug 2004 10:34:28 +1000 |
| Cc: | shemminger@xxxxxxxx, netdev@xxxxxxxxxxx |
| In-reply-to: | <20040813151923.3311b4f0.davem@xxxxxxxxxx> |
| References: | <20040812165954.00429e65.davem@xxxxxxxxxx> <20040813090314.448c971d@xxxxxxxxxxxxxxxxxxxxx> <20040813093838.6961c0d4.davem@xxxxxxxxxx> <20040813215602.GA15870@xxxxxxxxxxxxxxxxxxx> <20040813151923.3311b4f0.davem@xxxxxxxxxx> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
| User-agent: | Mutt/1.5.6+20040523i |
On Fri, Aug 13, 2004 at 03:19:23PM -0700, David S. Miller wrote: > On Sat, 14 Aug 2004 07:56:02 +1000 > Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> wrote: > > > Now had you put this barrier between the reading of ip_ptr and > > the checking of in_dev->dead, then the race would've been closed. Actually even that won't close the race so the barrier is completely unnecessary. > > But I still prefer to move the work into inetdev_destroy. > > Ok I see now. I've added your patch, it seems correct. Thanks. I presume you've reversed the previous patch as well? BTW, it looks like you can remove inetdev_lock altogether. All its users already assume that they don't race against each other by taking the rtnl lock. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} <herbert@xxxxxxxxxxxxxxxxxxx> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt |
| Previous by Date: | Patch submission for S2io Xframe driver to 2.6 kernel, Ravinandan Arakali |
|---|---|
| Next by Date: | Re: [PATCH] Move inetdev/ifa over to RCU, David S. Miller |
| Previous by Thread: | Re: [PATCH] Move inetdev/ifa over to RCU, David S. Miller |
| Next by Thread: | Re: [PATCH] Move inetdev/ifa over to RCU, David S. Miller |
| Indexes: | [Date] [Thread] [Top] [All Lists] |