Re: [RFC PATCH v2 1/3] restartable sequences: user-space per-cpu critical sections

2015-12-11 Thread Mathieu Desnoyers
- On Oct 27, 2015, at 7:56 PM, Paul Turner commo...@gmail.com wrote: > From: Paul Turner > > Introduce the notion of a restartable sequence. This is a piece of user code > that can be described in 3 components: > > 1) Establish where [e.g. which cpu] the thread is running > 2) Preparatory

Re: [RFC PATCH v2 1/3] restartable sequences: user-space per-cpu critical sections

2015-11-19 Thread Johannes Berg
On Tue, 2015-10-27 at 16:56 -0700, Paul Turner wrote: >  > + *  flags is currently unused. > + */ > +SYSCALL_DEFINE3(restartable_sequences, > +>> > int, flags, long, event_and_cpu, long, post_commit_instr_addr) > +{ > + return rseq_configure_current((__user u64 *)event_and_cp

[RFC PATCH v2 1/3] restartable sequences: user-space per-cpu critical sections

2015-10-27 Thread Paul Turner
From: Paul Turner Introduce the notion of a restartable sequence. This is a piece of user code that can be described in 3 components: 1) Establish where [e.g. which cpu] the thread is running 2) Preparatory work that is dependent on the state in [1]. 3) A committing instruction that proceeds