From: "Jan Beulich" Subject: Re: [PATCH 2/9] passthrough/amd: Drop unnecessary lock lookup. Date: Thu, 12 Sep 2013 14:35:59 +0100 Message-ID: <5231DF5F02000078000F2BED@nat28.tlf.novell.com> References: <1378988130-24172-1-git-send-email-tim@xen.org> <1378988130-24172-3-git-send-email-tim@xen.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1VK73y-0004ld-2H for xen-devel@lists.xenproject.org; Thu, 12 Sep 2013 13:36:02 +0000 In-Reply-To: <1378988130-24172-3-git-send-email-tim@xen.org> 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: Tim Deegan Cc: xen-devel , Jacob Shin , Suravee Suthikulpanit List-Id: xen-devel@lists.xenproject.org >>> On 12.09.13 at 14:15, Tim Deegan wrote: > The lock's not used for anything, and AFAICT no locking is needed > since the IVRS tables are static after boot. > > Coverity CID 1087199 > > Signed-off-by: Tim Deegan That was an oversight of mine I think. Reviewed-by: Jan Beulich > --- a/xen/drivers/passthrough/amd/iommu_intr.c > +++ b/xen/drivers/passthrough/amd/iommu_intr.c > @@ -443,7 +443,6 @@ static int update_intremap_entry_from_msi_msg( > * devices. > */ > > - lock = get_intremap_lock(iommu->seg, alias_id); > if ( ( req_id != alias_id ) && > get_ivrs_mappings(iommu->seg)[alias_id].intremap_table != NULL ) > { > -- > 1.7.10.4 > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xen.org > http://lists.xen.org/xen-devel