Re: IPv4/IPv6 sysctl unregistration deadlock

From
Herbert Xu <herbert@gondor.apana.org.au>
Date
2009-02-25 06:19:07
Reply to
Patrick McHardy, 2009-02-25
On Wed, Feb 25, 2009 at 06:23:33AM +0100, Patrick McHardy wrote:
An easy fix would be to keep track of whether sysctl unregistration
is in progress in IPv4/IPv6 and ignore new requests from that point
on. Its not very elegant though, so I was wondering whether anyone
has a better suggestion.
We could make the unregistration asynchronous and invoke a callback
when it's done.  Then we can simply hold a net_device refcount and
relinquish it in the callback.

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
Thread (25 messages) 25 messages, 6 authors, last reply 2009-03-08
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help