From: Tim Deegan Subject: Re: [PATCHv6 4/5] gnttab: remove unnecessary grant table locks Date: Thu, 23 Apr 2015 12:23:22 +0100 Message-ID: <20150423112322.GF10810@deinos.phlegethon.org> References: <1429718436-9782-1-git-send-email-david.vrabel@citrix.com> <1429718436-9782-5-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.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YlFE6-0005Pf-UX for xen-devel@lists.xenproject.org; Thu, 23 Apr 2015 11:23:27 +0000 Content-Disposition: inline In-Reply-To: <1429718436-9782-5-git-send-email-david.vrabel@citrix.com> 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: Keir Fraser , Ian Campbell , Christoph Egger , Jan Beulich , Matt Wilson , xen-devel@lists.xenproject.org, Malcolm Crossley List-Id: xen-devel@lists.xenproject.org At 17:00 +0100 on 22 Apr (1429722035), David Vrabel wrote: > @@ -2642,8 +2615,6 @@ __gnttab_swap_grant_ref(grant_ref_t ref_a, grant_ref_t ref_b) > */ > return rc; > > - spin_lock(>->lock); > - Now that this lock is gone, is anything stopping us racing against another CPU with ref_a and ref_b the other way around? Cheers, Tim.