kernel_optimize_test/drivers/xen/events
Ross Lagerwall fcdf31a7c1 xen/events/fifo: Handle linked events when closing a port
An event channel bound to a CPU that was offlined may still be linked
on that CPU's queue.  If this event channel is closed and reused,
subsequent events will be lost because the event channel is never
unlinked and thus cannot be linked onto the correct queue.

When a channel is closed and the event is still linked into a queue,
ensure that it is unlinked before completing.

If the CPU to which the event channel bound is online, spin until the
event is handled by that CPU. If that CPU is offline, it can't handle
the event, so clear the event queue during the close, dropping the
events.

This fixes the missing interrupts (and subsequent disk stalls etc.)
when offlining a CPU.

Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
2015-08-04 15:41:59 +01:00
..
events_2l.c xen/events: Clear cpu_evtchn_mask before resuming 2015-05-05 18:27:11 +01:00
events_base.c xen/events/fifo: Handle linked events when closing a port 2015-08-04 15:41:59 +01:00
events_fifo.c xen/events/fifo: Handle linked events when closing a port 2015-08-04 15:41:59 +01:00
events_internal.h xen/events/fifo: Handle linked events when closing a port 2015-08-04 15:41:59 +01:00
Makefile xen/events: use the FIFO-based ABI if available 2014-01-06 10:07:57 -05:00