All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH V3 0/2] xenbus: Fix S3 frontend resume when xenstored is not running
@ 2013-05-13 13:13 Aurelien Chartier
  2013-05-13 13:13 ` [PATCH V3 1/2] xenbus: save xenstore local status for later use Aurelien Chartier
  2013-05-13 13:13 ` [PATCH V3 2/2] xenbus: delay xenbus frontend resume is xenstored is not running Aurelien Chartier
  0 siblings, 2 replies; 9+ messages in thread
From: Aurelien Chartier @ 2013-05-13 13:13 UTC (permalink / raw)
  To: xen-devel
  Cc: Aurelien Chartier, stefano.stabellini, ian.campbell, JBeulich,
	konrad.wilk

Hi,

This patch series fixes the S3 resume of a domain running xenstored and a
frontend over xenbus (xen-netfront in my use case).

As device resume is happening before process resume, the xenbus frontend
resume is hanging if xenstored is not running, thus causing a deadlock.
This patch series is fixing that issue by deferring the xenbus frontend
resume when we are running xenstored in that same domain.

Changes in v2:
- Instead of bypassing the resume, process it in a workqueue.
Changes in v3:
- Add a struct work in xenbus_device to avoid dynamic allocation
- Use Linux global workqueue
- Several small code fixes

Aurelien Chartier (2):
  xenbus: save xenstore local status for later use
  xenbus: delay xenbus frontend resume is xenstored is not running

 drivers/xen/xenbus/xenbus_comms.h          |    1 +
 drivers/xen/xenbus/xenbus_probe.c          |   27 ++++++++++++---------------
 drivers/xen/xenbus/xenbus_probe.h          |    7 +++++++
 drivers/xen/xenbus/xenbus_probe_frontend.c |   26 +++++++++++++++++++++++++-
 include/xen/xenbus.h                       |    1 +
 5 files changed, 46 insertions(+), 16 deletions(-)

-- 
1.7.10.4

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

end of thread, other threads:[~2013-05-14 13:54 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-13 13:13 [PATCH V3 0/2] xenbus: Fix S3 frontend resume when xenstored is not running Aurelien Chartier
2013-05-13 13:13 ` [PATCH V3 1/2] xenbus: save xenstore local status for later use Aurelien Chartier
2013-05-14 10:17   ` David Vrabel
2013-05-14 13:07     ` Aurelien Chartier
2013-05-13 13:13 ` [PATCH V3 2/2] xenbus: delay xenbus frontend resume is xenstored is not running Aurelien Chartier
2013-05-14 10:09   ` David Vrabel
2013-05-14 13:04     ` Aurelien Chartier
2013-05-14 13:38       ` David Vrabel
2013-05-14 13:54         ` Aurelien Chartier

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.