This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


[Xen-changelog] [linux-2.6.18-xen] Avoid kernel hang reading /sys/hyperv

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [linux-2.6.18-xen] Avoid kernel hang reading /sys/hypervisor/uuid if xenstore is not available.
From: "Xen patchbot-linux-2.6.18-xen" <patchbot-linux-2.6.18-xen@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 28 Mar 2008 07:40:15 -0700
Delivery-date: Fri, 28 Mar 2008 07:40:17 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [linux-2.6.18-xen] Avoid kernel hang reading /sys/hypervisor/uuid if xenstore is not available., Xen patchbot-linux-2.6.18-xen <=