From: Ian Campbell Subject: Re: [PATCH v3 4/6] ioreq-server: on-demand creation of ioreq server Date: Fri, 14 Mar 2014 11:04:26 +0000 Message-ID: <1394795066.6442.18.camel@kazak.uk.xensource.com> References: <1394030881-5498-1-git-send-email-paul.durrant@citrix.com> <1394030881-5498-5-git-send-email-paul.durrant@citrix.com> <9AAE0902D5BC7E449B7C8E4E778ABCD0280AFE@AMSPEX01CL01.citrite.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <9AAE0902D5BC7E449B7C8E4E778ABCD0280AFE@AMSPEX01CL01.citrite.net> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Paul Durrant Cc: George Dunlap , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org On Tue, 2014-03-11 at 10:54 +0000, Paul Durrant wrote: > > > -static void hvm_destroy_ioreq_page( > > > - struct domain *d, struct hvm_ioreq_page *iorp) > > > +static void hvm_destroy_ioreq_page(struct hvm_ioreq_server *s, bool_t > > buf) > > > { > > > - spin_lock(&iorp->lock); > > > + struct hvm_ioreq_page *iorp; > > > > > > - ASSERT(d->is_dying); > > > + iorp = buf ? &s->buf_ioreq : &s->ioreq; > > > > > > destroy_ring_for_helper(&iorp->va, iorp->page); > > > - > > > - spin_unlock(&iorp->lock); > > > > BTW, is there a reason you're getting rid of the locks here? > > > > Yes, I don't believe it is needed. This smells like a separate patch to me, but at the very least removing a lock needs mention in the commit message. Ian.