From: Jeremy Fitzhardinge Subject: Re: [PATCH 11/13] x86/ticketlock: only do kick after doing unlock Date: Fri, 02 Sep 2011 12:34:14 -0700 Message-ID: <4E612FB6.9030904@goop.org> References: <8cd2c77886e2d3fcad8258aa62509b3b2fae5545.1314922370.git.jeremy.fitzhardinge@citrix.com> <1314974968.1861.3.camel@twins> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: Marcelo Tosatti , Nick Piggin , KVM , the arch/x86 maintainers , Linux Kernel Mailing List , Srivatsa Vaddagiri , Andi Kleen , Avi Kivity , Jeremy Fitzhardinge , "H. Peter Anvin" , Ingo Molnar , Linus Torvalds , Xen Devel To: Peter Zijlstra Return-path: In-Reply-To: <1314974968.1861.3.camel@twins> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com List-Id: kvm.vger.kernel.org On 09/02/2011 07:49 AM, Peter Zijlstra wrote: > On Thu, 2011-09-01 at 17:55 -0700, Jeremy Fitzhardinge wrote: >> From: Srivatsa Vaddagiri >> >> We must release the lock before checking to see if the lock is in >> slowpath or else there's a potential race where the lock enters the >> slow path after the unlocker has checked the slowpath flag, but before >> it has actually unlocked. >> >> Signed-off-by: Srivatsa Vaddagiri >> Signed-off-by: Jeremy Fitzhardinge > Wouldn't it be much better to fold it back so that this bug never > happens when you bisect? Yes indeed. J