Re: [PATCH 1/2] lockdep: lockdep_set_class_and_subclass
From: Dmitry Torokhov
Date: Tue Sep 26 2006 - 08:21:36 EST
On Tuesday 26 September 2006 07:54, Ingo Molnar wrote:
> * Peter Zijlstra <a.p.zijlstra@xxxxxxxxx> wrote:
> > Add lockdep_set_class_and_subclass() to the lockdep annotations.
> > This annotation makes it possible to assign a subclass on lock init.
> > This annotation is meant to reduce the _nested() annotations by
> > assigning a default subclass.
> > One could do without this annotation and rely on lockdep_set_class()
> > exclusively, but that would require a manual stack of struct
> > lock_class_key objects.
> > Signed-off-by: Peter Zijlstra <a.p.zijlstra@xxxxxxxxx>
> thanks, this extension to lockdep.c looks good to me - provided it
> solves the problem :-)
> Acked-by: Ingo Molnar <mingo@xxxxxxx>
I will try testing it tonight - I have a Synaptics with a pass-through
port. Anyway, it really looks good now as far as serio code concerned.
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/