lockdep: Fix trace_hardirqs_on_caller()
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Tue, 26 Jul 2011 11:13:44 +0000 (13:13 +0200)
committerIngo Molnar <mingo@elte.hu>
Thu, 4 Aug 2011 08:17:36 +0000 (10:17 +0200)
commit7d36b26be0f3c6b86e3ab7e1539e42f3a3bc79ca
treef22ac58f11dc1d0738e66024052f2e1c709533f1
parentd7619fe39d9769b4d4545cc511c891deea18ae08
lockdep: Fix trace_hardirqs_on_caller()

Commit dd4e5d3ac4a ("lockdep: Fix trace_[soft,hard]irqs_[on,off]()
recursion") made a bit of a mess of the various checks and error
conditions.

In particular it moved the check for !irqs_disabled() before the
spurious enable test, resulting in some warnings.

Reported-by: Arnaud Lacombe <lacombar@gmail.com>
Reported-by: Dave Jones <davej@redhat.com>
Reported-and-tested-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1311679697.24752.28.camel@twins
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/lockdep.c