Re: [PATCH] Export current_is_keventd() for libphy

David Howells
2006-12-06T18:43:59Z

Linus Torvalds <torvalds@osdl.org> 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