Skip to contentSkip to conversation

Fix evtchn of unbind_from_irqhandler()

PATCH New Kasai Takanori 1 participant 1 message Nov 6, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix evtchn of unbind_from_irqhandler()

Hi All,

When xm block-detach command was done on PV-ON-HVM, the response of other disks was lost. It is because a wrong event channel was invalidated when detaching it. Not the evtchn number but the irq number is invalidated specifying it.

Best Regard,

--
Takanori Kasai

# HG changeset patch
# User [email protected]
# Date 1194346690 -32400
# Node ID bc529131296be92727c3f470e0e3a0ee00b7eb21 # Parent 3191627e5ad6c0a1e8805a179f2906ae79a8b901 [PV-ON-HVM]: Fix evtchn of unbind_from_irqhandler().

unmodified_drivers/linux-2.6/platform-pci/evtchn.c +1 -1
diff -r 3191627e5ad6 -r bc529131296b unmodified_drivers/linux-2.6/platform-pci/evtchn.c
@@ -223,7 +223,7 @@ void unbind_from_irqhandler(unsigned int
 	evtchn = evtchn_from_irq(irq);
 
 	if (is_valid_evtchn(evtchn)) {
-		evtchn_to_irq[irq] = -1;
+		evtchn_to_irq[evtchn] = -1;
 		mask_evtchn(evtchn);
 		if (irq_evtchn[irq].close) {
 			struct evtchn_close close = { .port = evtchn };

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel