]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
xen/manage: Always freeze/thaw processes when suspend/resuming
authorRoss Lagerwall <ross.lagerwall@citrix.com>
Mon, 18 Aug 2014 09:41:36 +0000 (10:41 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 5 Oct 2014 20:41:03 +0000 (13:41 -0700)
commit2edbf3c6af0f5f1f9d2ef00a15339c10beaff405
tree83a81c7c36d8c36d0ae28327c9d7d8e0a9fd1e1d
parent52446fb9b34505cb168b5cebe2274b24b69fc7f6
xen/manage: Always freeze/thaw processes when suspend/resuming

commit 61a734d305e16944b42730ef582a7171dc733321 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>
drivers/xen/manage.c