Re: [debug patch] printk: Add a printk killswitch to robustify NMIwatchdog messages

From: Linus Torvalds
Date: Wed Jun 08 2011 - 16:54:53 EST


On Wed, Jun 8, 2011 at 1:32 PM, Peter Zijlstra <peterz@xxxxxxxxxxxxx> wrote:
>
> atomic_down() is a tad iffy, it would have to wait for an actual
> semaphore owner, which might sleep etc.. So I skipped it.

I think sleeping would be fine: the "atomic" part is about the code
the semaphore protects, not about the down() itself.

But the way you made the semantics be (caller has to disable
interrupts) for the other helpers, that doesn't really work.

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