|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] Fix a race that crash domU by calling xenbus_probe twice
# HG changeset patch
# User vhanquez@xxxxxxxxxxxxxxxxxxxxxxx
# Node ID e92b363402f9d208cc940e13b35e669dc571899f
# Parent 4d4a700bea7a31af470c4e79b366f791dead450b
Fix a race that crash domU by calling xenbus_probe twice if it receive event
between xs_init and setting xenbus_running
Signed-off-by: Vincent Hanquez <vincent@xxxxxxxxxxxxx>
diff -r 4d4a700bea7a -r e92b363402f9
linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c
--- a/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c Sat Mar 18
10:12:45 2006
+++ b/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c Sat Mar 18
13:56:34 2006
@@ -1049,6 +1049,8 @@
if (xsd_port_intf)
xsd_port_intf->read_proc = xsd_port_read;
}
+ else
+ xenstored_ready = 1;
/* Initialize the interface to xenstore. */
err = xs_init();
@@ -1058,10 +1060,8 @@
return err;
}
- if (!dom0) {
- xenstored_ready = 1;
+ if (!dom0)
xenbus_probe(NULL);
- }
return 0;
}
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] Fix a race that crash domU by calling xenbus_probe twice if it receive event,
Xen patchbot -unstable <=
|
|
|
|
|