Re: neigh_create/inetdev_destroy race?
From: Herbert Xu <herbert@gondor.apana.org.au>
Date: 2004-09-02 13:06:05
From: Herbert Xu <herbert@gondor.apana.org.au>
Date: 2004-09-02 13:06:05
On Wed, Sep 01, 2004 at 10:21:18PM -0700, David S. Miller wrote:
So here's the first step. No rcu_read_lock()'s are needed since the tbl->lock needs to be held as a write when traversing these things anyways for other reasons.
Thanks.
Can you work on the next bit you mentioned, making sure the corresponding idev is still alive when we add a neighbour with its neigh_parms to the hash table?
Sure. Actually I prefer to do it by ref counting neigh_parms directly. I'll send you a patch soon. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} [off-list ref] Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt