Latest commit 70216e1 Jan 29, 2018
compudj and Ingo Molnar membarrier: Provide core serializing command, *_SYNC_CORE
Provide core serializing membarrier command to support memory reclaim
by JIT.

Each architecture needs to explicitly opt into that support by
documenting in their architecture code how they provide the core
serializing instructions required when returning from the membarrier
IPI, and after the scheduler has updated the curr->mm pointer (before
going back to user-space). They should then select
ARCH_HAS_MEMBARRIER_SYNC_CORE to enable support for that command on
their architecture.

Architectures selecting this feature need to either document that
they issue core serializing instructions when returning to user-space,
or implement their architecture-specific sync_core_before_usermode().

Signed-off-by: Mathieu Desnoyers <>
Acked-by: Thomas Gleixner <>
Acked-by: Peter Zijlstra (Intel) <>
Cc: Andrea Parri <>
Cc: Andrew Hunter <>
Cc: Andy Lutomirski <>
Cc: Avi Kivity <>
Cc: Benjamin Herrenschmidt <>
Cc: Boqun Feng <>
Cc: Dave Watson <>
Cc: David Sehr <>
Cc: Greg Hackmann <>
Cc: H. Peter Anvin <>
Cc: Linus Torvalds <>
Cc: Maged Michael <>
Cc: Michael Ellerman <>
Cc: Paul E. McKenney <>
Cc: Paul Mackerras <>
Cc: Russell King <>
Cc: Will Deacon <>
Signed-off-by: Ingo Molnar <>