ia64/xen-unstable

changeset 16326:6c218ca2db7e

[PV-ON-HVM] Fix evtchn of unbind_from_irqhandler()

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.

Signed-off-by: Takanori Kasai <kasai.takanori@jp.fujitsu.com>
Signed-off-by: Tomonari Horikoshi <t.horikoshi@jp.fujitsu.com>
Signed-off-by: Kazuhiro Suzuki <kaz@jp.fujitsu.com>
author Keir Fraser <keir@xensource.com>
date Tue Nov 06 11:49:15 2007 +0000 (2007-11-06)
parents 55b24410ebfc
children 14faf0a94123
files unmodified_drivers/linux-2.6/platform-pci/evtchn.c
line diff
     1.1 --- a/unmodified_drivers/linux-2.6/platform-pci/evtchn.c	Tue Nov 06 09:43:22 2007 +0000
     1.2 +++ b/unmodified_drivers/linux-2.6/platform-pci/evtchn.c	Tue Nov 06 11:49:15 2007 +0000
     1.3 @@ -223,7 +223,7 @@ void unbind_from_irqhandler(unsigned int
     1.4  	evtchn = evtchn_from_irq(irq);
     1.5  
     1.6  	if (is_valid_evtchn(evtchn)) {
     1.7 -		evtchn_to_irq[irq] = -1;
     1.8 +		evtchn_to_irq[evtchn] = -1;
     1.9  		mask_evtchn(evtchn);
    1.10  		if (irq_evtchn[irq].close) {
    1.11  			struct evtchn_close close = { .port = evtchn };