Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756638AbcDGPjz (ORCPT ); Thu, 7 Apr 2016 11:39:55 -0400 Received: from casper.infradead.org ([85.118.1.10]:38907 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755546AbcDGPjx (ORCPT ); Thu, 7 Apr 2016 11:39:53 -0400 Date: Thu, 7 Apr 2016 17:39:48 +0200 From: Peter Zijlstra To: Andy Lutomirski Cc: Mathieu Desnoyers , "Paul E. McKenney" , Ingo Molnar , Paul Turner , Andi Kleen , Chris Lameter , Dave Watson , Josh Triplett , Linux API , "linux-kernel@vger.kernel.org" , Andrew Hunter , Linus Torvalds Subject: Re: [RFC PATCH 0/3] restartable sequences v2: fast user-space percpu critical sections Message-ID: <20160407153948.GH24771@twins.programming.kicks-ass.net> References: <20151027235635.16059.11630.stgit@pjt-glaptop.roam.corp.google.com> <20160407120254.GY3448@twins.programming.kicks-ass.net> <20160407152432.GZ3448@twins.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160407152432.GZ3448@twins.programming.kicks-ass.net> User-Agent: Mutt/1.5.21 (2012-12-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 681 Lines: 14 On Thu, Apr 07, 2016 at 05:24:32PM +0200, Peter Zijlstra wrote: > On Thu, Apr 07, 2016 at 07:35:26AM -0700, Andy Lutomirski wrote: > > That way we could take an async signal, handle it, and resume, even in > > the middle of a commit, without aborting. Of course, if the signal > > hander tried to access the same rseq-protected resource, it would bump > > the event counter and cause an abort. > > Ah, so what happens if the signal happens before the commit but after > the load of the seqcount? > > Then, even if the signal motifies the count, we'll not observe. Ah, and the same is true for preemptions. Which is why all this was preemption driven, and not migration driven.