Re: [PATCH] ipc/msg: Implement lockless pipelined wakeups

From: Sebastian Andrzej Siewior
Date: Tue Nov 03 2015 - 09:11:47 EST

On 10/31/2015 07:54 PM, Davidlohr Bueso wrote:
>> However, a wake_q keeps a reference to a task, so exiting is
>> not a danger. As long as wake_q_add precedes setting r_msg,
>> all is well.
> Yes, and this confirms that we still rely on the implicit barrier
> from the cmpxchg as tglx mentioned. As such, we also need to keep
> the pairing when reading 'r_msg' in do_msgrcv(), instead of dropping
> the comments.

Okay, I took the memory-barrier comment from your mqueue patch and

> Thanks,
> Davidlohr

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at