Re: [PATCH] lockdep: debug_show_all_locks & debug_show_held_locks vs. debug_locks

From: Ingo Molnar
Date: Thu Mar 22 2007 - 05:08:00 EST



* Peter Zijlstra <a.p.zijlstra@xxxxxxxxx> wrote:

> On Thu, 2007-03-22 at 07:57 +0100, Jarek Poplawski wrote:
> > And here is some addition.
> >
> > [PATCH] lockdep: debug_show_all_locks & debug_show_held_locks vs. debug_locks
> >
> > lockdep's data shouldn't be used when debug_locks == 0
> > because it's not updated after this, so it's more misleading
> > than helpful.
> >
> > PS: probably lockdep's current-> fields should be reset after
> > it turns debug_locks off: so, after printing a bug report, but
> > before return from exported functions, but there are really
> > a lot of these possibilities (e.g. after DEBUG_LOCKS_WARN_ON),
> > so, something could be missed. (Of course direct use of this
> > fields isn't recommended either.)
> >
> > Reported-by: Folkert van Heusden <folkert@xxxxxxxxxxxxxx>
> > Inspired-by: Oleg Nesterov <oleg@xxxxxxxxxx>
> > Signed-off-by: Jarek Poplawski <jarkao2@xxxxx>
>
> Acked-by: Peter Zijlstra <a.p.zijlstra@xxxxxxxxx>

Acked-by: Ingo Molnar <mingo@xxxxxxx>

Ingo
-
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/