Re: [RFC PATCH v10 for 4.15 01/14] Restartable sequences system call

2017-11-06 Thread Mathieu Desnoyers
- On Nov 6, 2017, at 8:24 PM, Boqun Feng boqun.f...@gmail.com wrote: > On Mon, Nov 06, 2017 at 03:56:31PM -0500, Mathieu Desnoyers wrote: > [...] >> + >> +/* >> + * struct rseq is aligned on 4 * 8 bytes to ensure it is always >> + * contained within a single cache-line. >> + * >> + * A single

Re: [RFC PATCH v10 for 4.15 01/14] Restartable sequences system call

2017-11-06 Thread Mathieu Desnoyers
- On Nov 6, 2017, at 8:24 PM, Boqun Feng boqun.f...@gmail.com wrote: > On Mon, Nov 06, 2017 at 03:56:31PM -0500, Mathieu Desnoyers wrote: > [...] >> + >> +/* >> + * struct rseq is aligned on 4 * 8 bytes to ensure it is always >> + * contained within a single cache-line. >> + * >> + * A single

Re: [RFC PATCH v10 for 4.15 01/14] Restartable sequences system call

2017-11-06 Thread Boqun Feng
On Mon, Nov 06, 2017 at 03:56:31PM -0500, Mathieu Desnoyers wrote: [...] > + > +/* > + * struct rseq is aligned on 4 * 8 bytes to ensure it is always > + * contained within a single cache-line. > + * > + * A single struct rseq per thread is allowed. > + */ > +struct rseq { > + /* > + *

Re: [RFC PATCH v10 for 4.15 01/14] Restartable sequences system call

2017-11-06 Thread Boqun Feng
On Mon, Nov 06, 2017 at 03:56:31PM -0500, Mathieu Desnoyers wrote: [...] > + > +/* > + * struct rseq is aligned on 4 * 8 bytes to ensure it is always > + * contained within a single cache-line. > + * > + * A single struct rseq per thread is allowed. > + */ > +struct rseq { > + /* > + *

[RFC PATCH v10 for 4.15 01/14] Restartable sequences system call

2017-11-06 Thread Mathieu Desnoyers
Expose a new system call allowing each thread to register one userspace memory area to be used as an ABI between kernel and user-space for two purposes: user-space restartable sequences and quick access to read the current CPU number value from user-space. * Restartable sequences (per-cpu

[RFC PATCH v10 for 4.15 01/14] Restartable sequences system call

2017-11-06 Thread Mathieu Desnoyers
Expose a new system call allowing each thread to register one userspace memory area to be used as an ABI between kernel and user-space for two purposes: user-space restartable sequences and quick access to read the current CPU number value from user-space. * Restartable sequences (per-cpu