Re: [PATCH] Document that wake_up(), complete() and co. imply a full memory barrier

From: David Howells
Date: Thu Apr 23 2009 - 16:39:32 EST


Oleg Nesterov <oleg@xxxxxxxxxx> wrote:

> Well. I think in that case almost every try_to_wake_up/wake_up_process
> needs mb().

Not exactly. They need smp_wmb() in the wake_up() path - unless they use
locks, which a lot of cases do.

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/