Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
From: Herbert Xu <herbert@gondor.apana.org.au>
Date: 2008-08-19 00:05:59
From: Herbert Xu <herbert@gondor.apana.org.au>
Date: 2008-08-19 00:05:59
On Mon, Aug 18, 2008 at 04:54:11PM -0700, David Miller wrote:
Yep, and that's the lock debugging thing which is triggering now. Likely what I'll do is simply reinstate RCU but only for the freeing of the memory, nothing more. This keeps everything doing destruction under RTNL as desired, yet fixes the "we're holding lock that's being freed" problem.
Is this the problem with dev_shutdown freeing the qdisc while holding its lock? Couldn't we just drop the lock before calling qdisc_destroy? dev_shutdown can only be called after dev_deactivate, as such all qdisc users should have disappeared by now (and if they haven't, our waiting loop in dev_deactivate didn't work and we should fix that). 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