All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] xen/events/fifo: Add missing hotplug notifier transition
@ 2016-03-11  9:00 Anna-Maria Gleixner
  2016-03-11 10:53 ` David Vrabel
  2016-03-11 10:53 ` [Xen-devel] " David Vrabel
  0 siblings, 2 replies; 5+ messages in thread
From: Anna-Maria Gleixner @ 2016-03-11  9:00 UTC (permalink / raw)
  To: linux-kernel
  Cc: rt, Anna-Maria Gleixner, Konrad Rzeszutek Wilk, Boris Ostrovsky,
	David Vrabel, xen-devel

The evtchn_fifo_cpu_notification() hotplug callback lacks handling of
the CPU_UP_CANCELED case. That means, if CPU_UP_PREPARE fails, the
handle of the fifo events is not dropped.

Add handling for CPU_UP_CANCELED transition to drop the fifo events
handle.

Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Cc: David Vrabel <david.vrabel@citrix.com>
Cc: xen-devel@lists.xenproject.org
Signed-off-by: Anna-Maria Gleixner <anna-maria@linutronix.de>
---
 drivers/xen/events/events_fifo.c |    1 +
 1 file changed, 1 insertion(+)

--- a/drivers/xen/events/events_fifo.c
+++ b/drivers/xen/events/events_fifo.c
@@ -432,6 +432,7 @@ static int evtchn_fifo_cpu_notification(
 			ret = evtchn_fifo_alloc_control_block(cpu);
 		break;
 	case CPU_DEAD:
+	case CPU_UP_CANCELED:
 		__evtchn_fifo_handle_events(cpu, true);
 		break;
 	default:

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-03-11 11:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-11  9:00 [PATCH] xen/events/fifo: Add missing hotplug notifier transition Anna-Maria Gleixner
2016-03-11 10:53 ` David Vrabel
2016-03-11 10:53 ` [Xen-devel] " David Vrabel
2016-03-11 11:26   ` Anna-Maria Gleixner
2016-03-11 11:26   ` [Xen-devel] " Anna-Maria Gleixner

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.