Re: [PATCH] Export current_is_keventd() for libphy

From: David Howells
Date: Wed Dec 06 2006 - 13:44:20 EST


Linus Torvalds <torvalds@xxxxxxxx> wrote:

> (a) "volatile" on kernel data is basically always a bug, and you should
> use locking.

But what about when you're building a lock? Actually, I suspect correct usage
of asm constraints and memory barriers trumps volatile anyway even there.

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