[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [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
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |