From: "Jan Beulich" Subject: Re: Strange PVM spinlock case revisited (nailed down) Date: Thu, 14 Feb 2013 14:48:57 +0000 Message-ID: <511D076902000078000BE556@nat28.tlf.novell.com> References: <51151ABF.1070007@canonical.com> <511CC4D8.3060203@canonical.com> <511CDBF302000078000BE2D7@nat28.tlf.novell.com> <511CF2D7.6090004@canonical.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <511CF2D7.6090004@canonical.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Stefan Bader Cc: Andrew Cooper , Ian Campbell , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org >>> On 14.02.13 at 15:21, Stefan Bader wrote: > Having more understanding now, I had a different idea. Not sure this is > foolproof and surely is causing some more active spinning. But it looks like I > also can keep the system from locking up (v3.2 kernel and the testcase) if I > change xen_spin_unlock_slow to send the wakeup IPI to _all_ spinners instead > of only the first one found. That, afaict, is an absolute requirement with the open coded lock that you pointed at, as otherwise the code makes a pseudo ticket assumption in believing to know who's going to be the next owner of the lock. Jan