Re: [patch 0/4] DEBUG_RCU_HEAD: Debug and fix racy call_rcu() users

From: Mathieu Desnoyers
Date: Mon Oct 12 2009 - 14:31:50 EST


* Ingo Molnar (mingo@xxxxxxx) wrote:
>
> * Mathieu Desnoyers <mathieu.desnoyers@xxxxxxxxxx> wrote:
>
> > Here is a patchset, done on 2.6.30.9, which permits to detect and fix
> > racy call_rcu() users.
>
> Nice idea - but any reason why this isnt using the debugojects
> framework? That debugging framework is upstream already and allows this
> kind of object lifetime debugging - in a much broader way.
>

Other than: it did not occur to me, no, there is no reason for not using
debugobjects there. :-)

As long as we can tag the object as
- initialized
- active
- inactive

And dump a nice fat warning when the object is activated twice, that
should suffice. Now time is a bit short on my side, but I'll keep in
mind to respin a version on top of debugobjects soon.

Thanks,

Mathieu


> Ingo

--
Mathieu Desnoyers
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F BA06 3F25 A8FE 3BAE 9A68
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/