xen-devel
Re: [Xen-devel] Re: [PATCH 12/14] xen: events: remove use of nr_irqs as
On Sat, 2011-03-12 at 23:41 +0000, Josip Rodin wrote:
> On Sun, Mar 13, 2011 at 12:31:52AM +0100, joy wrote:
> > Hi,
> >
> > I figure lockdep is going to tell you the same, but I happened to
> > notice it myself:
> >
> > http://xenbits.xen.org/gitweb/?p=people/ianc/linux-2.6.git;a=commitdiff;h=88d0448802e4720579e28ffc7e6db8652e378274
> >
> > @@ -769,7 +748,24 @@ out:
> >
> > int xen_irq_from_pirq(unsigned pirq)
> > [...]
> > + spin_lock(&irq_mapping_update_lock);
> > [...]
> > +out:
> > + spin_lock(&irq_mapping_update_lock);
> >
> > The latter one looks like it should be an unlock.
>
> I just noticed that it's been pulled into
> http://git.kernel.org/?p=linux/kernel/git/konrad/xen.git;a=commitdiff;h=69c358ce377e998e3ababb494c2f8769dfb1715d
> and mentioned in
> http://lists.xensource.com/archives/html/xen-devel/2011-03/msg00718.html
> So I'm sending it to the list (with adjusted Subject and In-Reply-To)
> just in case.
Thanks. I could've sworn I fixed this up once already but I guess I
managed to not include it in the final branch somehow.
8<-------------------------------------
>From cc02eff5c1ed405153a4fe146382ee0324ab8ce1 Mon Sep 17 00:00:00 2001
From: Ian Campbell <ian.campbell@xxxxxxxxxx>
Date: Mon, 14 Mar 2011 09:50:01 +0000
Subject: [PATCH] xen: events: correct locking in xen_irq_from_pirq
One of those spin_lock() calls should be an unlock...
Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
---
drivers/xen/events.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/xen/events.c b/drivers/xen/events.c
index 3566c00..dc81779 100644
--- a/drivers/xen/events.c
+++ b/drivers/xen/events.c
@@ -752,7 +752,7 @@ int xen_irq_from_pirq(unsigned pirq)
}
irq = -1;
out:
- spin_lock(&irq_mapping_update_lock);
+ spin_unlock(&irq_mapping_update_lock);
return irq;
}
--
1.5.6.5
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [PATCH 05/14] xen: events: rename restore_cpu_pirqs -> restore_pirqs, (continued)
- [Xen-devel] [PATCH 05/14] xen: events: rename restore_cpu_pirqs -> restore_pirqs, Ian Campbell
- [Xen-devel] [PATCH 04/14] xen: events: remove unused public functions, Ian Campbell
- [Xen-devel] [PATCH 06/14] xen: events: refactor GSI pirq bindings functions, Ian Campbell
- [Xen-devel] [PATCH 07/14] xen: events: use per-cpu variable for cpu_evtchn_mask, Ian Campbell
- [Xen-devel] [PATCH 08/14] xen: events: turn irq_info constructors into initialiser functions, Ian Campbell
- [Xen-devel] [PATCH 10/14] xen: events: maintain a list of Xen interrupts, Ian Campbell
- [Xen-devel] [PATCH 11/14] xen: events: dynamically allocate irq info structures, Ian Campbell
- [Xen-devel] [PATCH 09/14] xen: events: push setup of irq<->{evtchn, ipi, virq, pirq} maps into irq_info init functions, Ian Campbell
- [Xen-devel] [PATCH 12/14] xen: events: remove use of nr_irqs as upper bound on number of pirqs, Ian Campbell
- [Xen-devel] [PATCH 13/14] xen: events: do not workaround too-small nr_irqs, Ian Campbell
- [Xen-devel] [PATCH 14/14] xen: events: propagate irq allocation failure instead of panicking, Ian Campbell
- [Xen-devel] Re: [GIT PATCH v2 0/14] xen: events: cleanups + ween off nr_irqs, Konrad Rzeszutek Wilk
|
|
|