WARNING - OLD ARCHIVES

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/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] Grab lock around registering watch.

# HG changeset patch
# User cl349@xxxxxxxxxxxxxxxxxxxx
# Node ID aeb3b64ea40eb9c4bcb9d1b4862c98684d325759
# Parent  bd0ff9b1ea14d4c2b643dc3b094dd1debb049ffd
Grab lock around registering watch.
Signed-off-by: Rusty Russel <rusty@xxxxxxxxxxxxxxx>
Signed-off-by: Christian Limpach <Christian.Limpach@xxxxxxxxxxxx>

diff -r bd0ff9b1ea14 -r aeb3b64ea40e 
linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c
--- a/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c    Tue Jul 26 
17:07:05 2005
+++ b/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c    Tue Jul 26 
17:07:50 2005
@@ -262,7 +262,9 @@
        /* Enumerate devices in xenstore. */
        xenbus_probe_devices("device");
 
+       down(&xenbus_lock);
        register_xenbus_watch(&dev_watch);
+       up(&xenbus_lock);
        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] Grab lock around registering watch., Xen patchbot -unstable <=