News for hackers. Stuff that matters.
Re:Linux: Introduce restartable sequences system call by Dykam on Thursday June 21, 2018 @07:30PM (#17370060)
Kind of like optimistic concurrency? "Lets try, we'll retry on failure".
Re:Linux: Introduce restartable sequences system call by zaarn on Friday June 22, 2018 @03:53AM (#17372263)
It doesn't look like it's a full retry, atleast not for critical sections.

From what I can tell you do three things;

A) you can define a critical section which must run atomically in respect to the CPU core moves

B) if the critical section is interrupted you can define a callback or restart the section (meaning the section can be safely repeated)

C) you can define a single operation to commit (ie, updating a pointer)

You can certainly build a "retry on failure" method using this, CPU moves are rare so it's unlikely to fail the second time.