[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [linux-2.6.18-xen] Avoid kernel hang reading /sys/hypervisor/uuid if xenstore is not available.
# HG changeset patch # User Ian Campbell <ian.campbell@xxxxxxxxxx> # Date 1206699677 0 # Node ID 080b0c482ad67dffdaed7eaf91ece34a42669c90 # Parent 0637d22ed554eb0b9cecc7a74fa0a77a7c456497 Avoid kernel hang reading /sys/hypervisor/uuid if xenstore is not available. Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx> --- drivers/xen/core/xen_sysfs.c | 4 ++++ 1 files changed, 4 insertions(+) diff -r 0637d22ed554 -r 080b0c482ad6 drivers/xen/core/xen_sysfs.c --- a/drivers/xen/core/xen_sysfs.c Fri Mar 28 09:49:22 2008 +0000 +++ b/drivers/xen/core/xen_sysfs.c Fri Mar 28 10:21:17 2008 +0000 @@ -104,6 +104,10 @@ static ssize_t uuid_show(struct hyp_sysf { char *vm, *val; int ret; + extern int xenstored_ready; + + if (!xenstored_ready) + return -EBUSY; vm = xenbus_read(XBT_NIL, "vm", "", NULL); if (IS_ERR(vm)) _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |