]> Git Repo - linux.git/commitdiff
lockdep: Fix lockdep_no_validate against IRQ states
authorPeter Zijlstra <[email protected]>
Thu, 7 Jul 2011 09:39:45 +0000 (11:39 +0200)
committerIngo Molnar <[email protected]>
Thu, 21 Jul 2011 18:43:16 +0000 (20:43 +0200)
Thomas noticed that a lock marked with lockdep_set_novalidate_class()
will still trigger warnings for IRQ inversions. Cure this by skipping
those when marking irq state.

Reported-and-tested-by: Thomas Gleixner <[email protected]>
Signed-off-by: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/n/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
kernel/lockdep.c

index 298c9276dfdb378877249384db860c3658485ef2..628276d05915e7967fd8109e9bc0bab1391fc54b 100644 (file)
@@ -2468,6 +2468,9 @@ mark_held_locks(struct task_struct *curr, enum mark_type mark)
 
                BUG_ON(usage_bit >= LOCK_USAGE_STATES);
 
+               if (hlock_class(hlock)->key == &__lockdep_no_validate__)
+                       continue;
+
                if (!mark_lock(curr, hlock, usage_bit))
                        return 0;
        }
This page took 0.064522 seconds and 4 git commands to generate.