[RFC PATCH v2 for 4.15 07/10] membarrier: x86: Provide core serializing command

2017-11-10 Thread Mathieu Desnoyers
There are two places where core serialization is needed by membarrier: 1) When returning from the membarrier IPI, 2) After scheduler updates curr to a thread with a different mm, before going back to user-space, since the curr->mm is used by membarrier to check whether it needs to send an

[RFC PATCH v2 for 4.15 07/10] membarrier: x86: Provide core serializing command

2017-11-10 Thread Mathieu Desnoyers
There are two places where core serialization is needed by membarrier: 1) When returning from the membarrier IPI, 2) After scheduler updates curr to a thread with a different mm, before going back to user-space, since the curr->mm is used by membarrier to check whether it needs to send an