David Vrabel 1b6478231c xen/manage: fix potential deadlock when resuming the console
Calling xen_console_resume() in xen_suspend() causes a warning because
it locks irq_mapping_update_lock (a mutex) and this may sleep.  If a
userspace process is using the evtchn device then this mutex may be
locked at the point of the stop_machine() call and
xen_console_resume() would then deadlock.

Resuming the console after stop_machine() returns avoids this
deadlock.

Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Cc: <stable@vger.kernel.org>
2014-07-03 11:02:28 +01:00
..
2013-06-28 11:19:58 -04:00
2008-12-16 21:50:31 +01:00
2013-06-28 11:19:58 -04:00
2014-01-22 22:00:18 -08:00
2013-06-28 11:19:58 -04:00
2014-01-06 10:07:30 -05:00
2011-12-16 13:29:31 -05:00
2013-07-03 13:12:42 -07:00