From: Stefano Stabellini Subject: Re: [PATCH v9 10/10] xen/arm: make accesses to desc->status flags atomic Date: Tue, 29 Jul 2014 11:25:17 +0100 Message-ID: References: <1406223192-26267-10-git-send-email-stefano.stabellini@eu.citrix.com> <53D68506.5050206@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <53D68506.5050206@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: julien.grall@citrix.com, xen-devel@lists.xensource.com, Ian.Campbell@citrix.com, Stefano Stabellini List-Id: xen-devel@lists.xenproject.org On Mon, 28 Jul 2014, Julien Grall wrote: > Hi Stefano, > > On 07/24/2014 06:33 PM, Stefano Stabellini wrote: > > @@ -305,13 +306,13 @@ static int __setup_irq(struct irq_desc *desc, unsigned int irqflags, > > * - if the IRQ is marked as shared > > * - dev_id is not NULL when IRQF_SHARED is set > > */ > > - if ( desc->action != NULL && (!(desc->status & IRQF_SHARED) || !shared) ) > > + if ( desc->action != NULL && (!test_bit(_IRQF_SHARED, &desc->status) || !shared) ) > > return -EINVAL; > > if ( shared && new->dev_id == NULL ) > > return -EINVAL; > > > > if ( shared ) > > - desc->status |= IRQF_SHARED; > > + set_bit(IRQF_SHARED, &desc->status); > > Shouldn't it be _IRQF_SHARED? well spotted! thanks!