Re: [RFC PATCH v13] sys_membarrier(): system/process-wide memory barrier (x86)

From: Peter Zijlstra
Date: Tue Mar 17 2015 - 13:30:48 EST


On Tue, Mar 17, 2015 at 01:22:02PM -0400, Mathieu Desnoyers wrote:
> Here is an implementation of a new system call, sys_membarrier(), which
> executes a memory barrier on either all running threads of the current
> process (MEMBARRIER_PRIVATE) issues a memory barrier on all threads
> running on the system (~MEMBARRIER_PRIVATE). Both are currently
> implemented by calling synchronize_sched().

Then why bother with the flag?
--
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/