From: "Jan Beulich" Subject: Re: [PATCHv12 1/5] gnttab: per-active entry locking Date: Mon, 15 Jun 2015 10:59:04 +0100 Message-ID: <557EBE080200007800084B9D@mail.emea.novell.com> References: <1434116032-6993-1-git-send-email-david.vrabel@citrix.com> <1434116032-6993-2-git-send-email-david.vrabel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Z4RAc-0000xM-8r for xen-devel@lists.xenproject.org; Mon, 15 Jun 2015 09:59:10 +0000 In-Reply-To: <1434116032-6993-2-git-send-email-david.vrabel@citrix.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: David Vrabel Cc: xen-devel@lists.xenproject.org, Keir Fraser , Ian Campbell , Tim Deegan List-Id: xen-devel@lists.xenproject.org >>> On 12.06.15 at 15:33, wrote: > Introduce a per-active entry spin lock to protect active entry state > The grant table lock must be locked before acquiring (locking) an > active entry. > > This is a step in reducing contention on the grant table lock, but > will only do so once the grant table lock is turned into a read-write > lock. > > Based on a patch originally by Matt Wilson . > > Signed-off-by: David Vrabel > --- > v12: > - Check for same refs in __gnttab_swap_grant_ref() to avoid deadlock. I'm glad you spotted this, because the check having been there until v8 I didn't notice it got lost later on. Jan