From: Ian Campbell Subject: Re: [PATCH v3 18/18] xen/arm: IRQ: Handle multiple action per IRQ Date: Thu, 17 Apr 2014 13:27:00 +0100 Message-ID: <1397737620.24638.298.camel@kazak.uk.xensource.com> References: <1396968247-8768-1-git-send-email-julien.grall@linaro.org> <1396968247-8768-19-git-send-email-julien.grall@linaro.org> <1397663693.24638.226.camel@kazak.uk.xensource.com> <534EAA6C.9070601@linaro.org> <1397665048.24638.237.camel@kazak.uk.xensource.com> <534EAE7C.7090609@linaro.org> <534F99C90200007800009DAE@nat28.tlf.novell.com> <534FAEC6.9070303@linaro.org> <534FD3FB0200007800009F41@nat28.tlf.novell.com> <534FB985.7010606@linaro.org> <1397734580.24638.297.camel@kazak.uk.xensource.com> <534FC67E.3010602@linaro.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 1WalPF-0005tG-Au for xen-devel@lists.xenproject.org; Thu, 17 Apr 2014 12:27:05 +0000 In-Reply-To: <534FC67E.3010602@linaro.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Julien Grall Cc: xen-devel@lists.xenproject.org, Keir Fraser , stefano.stabellini@citrix.com, Jan Beulich , tim@xen.org List-Id: xen-devel@lists.xenproject.org On Thu, 2014-04-17 at 13:18 +0100, Julien Grall wrote: > On 04/17/2014 12:36 PM, Ian Campbell wrote: > > On Thu, 2014-04-17 at 12:22 +0100, Julien Grall wrote: > >> On 04/17/2014 12:15 PM, Jan Beulich wrote: > >>>>>> On 17.04.14 at 12:36, wrote: > >>>> In Linux case, they are safe because they are using a single linked list. > >>> > >>> And is there a strong reason for us to use a doubly linked one? > >> > >> My first version was single-linked list... Ian asked me to use generic > >> list on V1 to avoid open code. > > > > I also suggested that you could import a single linked list > > implementation if you thought it would be better. > > > >> I was looking to port llist.h from Linux but it seems a bit overkill for > >> action list. > > > > I don't see why. I'm sure there are other potential uses of singly > > linked lists which people just used a double list because it was simpler > > at the time. > > > They are using xchg and AFAIU it's not possible to delete an element > anywhere in the list. See: > > http://lxr.free-electrons.com/source/include/linux/llist.h Hrm, I thought Linux had a standard singly link list available too, oh well. Another option would be to delete things using the rcu mechanisms perhaps. Ian.