Re: [PATCH for 4.16 08/10] membarrier: x86: Provide core serializing command (v3)

2018-01-16 Thread Mathieu Desnoyers
- On Jan 16, 2018, at 2:22 PM, Mathieu Desnoyers mathieu.desnoy...@efficios.com wrote: > - On Jan 16, 2018, at 1:29 PM, Thomas Gleixner t...@linutronix.de wrote: > >> On Mon, 15 Jan 2018, Mathieu Desnoyers wrote: >> >>> There are two places where core serialization is needed by

Re: [PATCH for 4.16 08/10] membarrier: x86: Provide core serializing command (v3)

2018-01-16 Thread Mathieu Desnoyers
- On Jan 16, 2018, at 2:22 PM, Mathieu Desnoyers mathieu.desnoy...@efficios.com wrote: > - On Jan 16, 2018, at 1:29 PM, Thomas Gleixner t...@linutronix.de wrote: > >> On Mon, 15 Jan 2018, Mathieu Desnoyers wrote: >> >>> There are two places where core serialization is needed by

Re: [PATCH for 4.16 08/10] membarrier: x86: Provide core serializing command (v3)

2018-01-16 Thread Mathieu Desnoyers
- On Jan 16, 2018, at 1:29 PM, Thomas Gleixner t...@linutronix.de wrote: > On Mon, 15 Jan 2018, Mathieu Desnoyers wrote: > >> 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

Re: [PATCH for 4.16 08/10] membarrier: x86: Provide core serializing command (v3)

2018-01-16 Thread Mathieu Desnoyers
- On Jan 16, 2018, at 1:29 PM, Thomas Gleixner t...@linutronix.de wrote: > On Mon, 15 Jan 2018, Mathieu Desnoyers wrote: > >> 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

Re: [PATCH for 4.16 08/10] membarrier: x86: Provide core serializing command (v3)

2018-01-16 Thread Thomas Gleixner
On Mon, 15 Jan 2018, Mathieu Desnoyers wrote: > 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

Re: [PATCH for 4.16 08/10] membarrier: x86: Provide core serializing command (v3)

2018-01-16 Thread Thomas Gleixner
On Mon, 15 Jan 2018, Mathieu Desnoyers wrote: > 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

[PATCH for 4.16 08/10] membarrier: x86: Provide core serializing command (v3)

2018-01-15 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

[PATCH for 4.16 08/10] membarrier: x86: Provide core serializing command (v3)

2018-01-15 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