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

David Howells
2009-04-23T20:39:31Z

Oleg Nesterov <oleg@redhat.com> 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