Re: combinatorial explosion in lockdep

From: David Miller
Date: Sun Aug 03 2008 - 04:14:57 EST


From: Hugh Dickins <hugh@xxxxxxxxxxx>
Date: Fri, 1 Aug 2008 12:57:27 +0100 (BST)

> @@ -113,6 +113,7 @@ static void __spin_lock_debug(spinlock_t
> /* lockup suspected: */
> if (print_once) {
> print_once = 0;
> + oops_in_progress = 1;
> printk(KERN_EMERG "BUG: spinlock lockup on CPU#%d, "
> "%s/%d, %p\n",
> raw_smp_processor_id(), current->comm,
> @@ -121,6 +122,7 @@ static void __spin_lock_debug(spinlock_t
> #ifdef CONFIG_SMP
> trigger_all_cpu_backtrace();
> #endif
> + oops_in_progress = 0;
> }
> }
> }

It's probably best to not later clear oops_in_progress when we trigger
an event like this, to ensure that we do actually get any followon
messages on the console.
--
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/