linux/drivers/xen
Ross Lagerwall 2aebee063b xen/manage: Always freeze/thaw processes when suspend/resuming
commit 61a734d305 upstream.

Always freeze processes when suspending and thaw processes when resuming
to prevent a race noticeable with HVM guests.

This prevents a deadlock where the khubd kthread (which is designed to
be freezable) acquires a usb device lock and then tries to allocate
memory which requires the disk which hasn't been resumed yet.
Meanwhile, the xenwatch thread deadlocks waiting for the usb device
lock.

Freezing processes fixes this because the khubd thread is only thawed
after the xenwatch thread finishes resuming all the devices.

Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-10-05 14:52:17 -07:00
..
events xen/events/fifo: reset control block and local HEADs on resume 2014-09-17 09:19:20 -07:00
xen-pciback
xenbus
xenfs
acpi.c
balloon.c
biomerge.c
cpu_hotplug.c
dbgp.c
evtchn.c
fallback.c
features.c
gntalloc.c
gntdev.c
grant-table.c
Kconfig
Makefile
manage.c xen/manage: Always freeze/thaw processes when suspend/resuming 2014-10-05 14:52:17 -07:00
mcelog.c
pci.c
pcpu.c
platform-pci.c
privcmd.c
privcmd.h
swiotlb-xen.c
sys-hypervisor.c
tmem.c
xen-acpi-cpuhotplug.c
xen-acpi-memhotplug.c
xen-acpi-pad.c
xen-acpi-processor.c
xen-balloon.c
xen-selfballoon.c
xen-stub.c