From: "Jan Beulich" Subject: Re: [PATCH v8 for-xen-4.5 2/2] dpci: Replace tasklet with an softirq (v8) Date: Mon, 27 Oct 2014 09:36:04 +0000 Message-ID: <544E20140200007800042527@mail.emea.novell.com> References: <1413911967-26886-1-git-send-email-konrad.wilk@oracle.com> <1413911967-26886-3-git-send-email-konrad.wilk@oracle.com> <5448E82702000078000415B5@mail.emea.novell.com> <20141024015858.GB28850@laptop.dumpdata.com> <544A41970200007800041D63@mail.emea.novell.com> <20141024205544.GA19814@laptop.dumpdata.com> <20141025003911.GA2919@laptop.dumpdata.com> 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 1Xigie-0001ql-TJ for xen-devel@lists.xenproject.org; Mon, 27 Oct 2014 09:36:09 +0000 In-Reply-To: <20141025003911.GA2919@laptop.dumpdata.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: Konrad Rzeszutek Wilk Cc: keir@xen.org, ian.campbell@citrix.com, andrew.cooper3@citrix.com, tim@xen.org, xen-devel@lists.xenproject.org, ian.jackson@eu.citrix.com List-Id: xen-devel@lists.xenproject.org >>> On 25.10.14 at 02:39, wrote: > We can stick the 'quisce' part at the end of 'pt_pirq_destroy_bind' or > at the start of 'pt_irq_create_bind'. And the only way I can think of doing > this quisce is: > > if ( pt_pirq_softirq_active(pirq_dpci) ) > { > spin_unlock(&d->event_lock); > - ASSERT_NOT_IN_ATOMIC(); > - process_pending_softirqs(); > + cpu_relax(); > goto restart; > } > > Which would replicate what a 'tasklet_kill' does. Ah, right, it was you who added the process_pending_softirqs() despite tasklet_kill() not having it. With the comment referring to tasklet_kill()'s behavior I think this is fine to be done as you suggest above. Jan