From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cooper Subject: Re: [PATCH] x86/irq: fix locking for c/s 24707:96987c324a4f debugging code Date: Thu, 10 May 2012 10:26:25 +0100 Message-ID: <4FAB89C1.6040702@citrix.com> References: <4FABA4A10200007800082A9B@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4FABA4A10200007800082A9B@nat28.tlf.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich Cc: xen-devel List-Id: xen-devel@lists.xenproject.org On 10/05/12 10:21, Jan Beulich wrote: > Without this, dump_irqs() may try to acquire the lock the caller is > currently holding. > > Signed-off-by: Jan Beulich With the proviso that this is patch will disappear when all (3 so far) of these debugging patches disappear. Acked-by: Andrew Cooper > > --- a/xen/arch/x86/irq.c > +++ b/xen/arch/x86/irq.c > @@ -668,6 +668,7 @@ void irq_move_cleanup_interrupt(struct c > { > if ( unlikely(!test_bit(vector, desc->arch.used_vectors)) ) > { > + spin_unlock(&desc->lock); > bitmap_scnlistprintf(keyhandler_scratch, > sizeof(keyhandler_scratch), > desc->arch.used_vectors->_bits, > > > -- Andrew Cooper - Dom0 Kernel Engineer, Citrix XenServer T: +44 (0)1223 225 900, http://www.citrix.com