aboutsummaryrefslogtreecommitdiffstats
path: root/extras/mini-os/fs-front.c
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2009-11-23 07:21:58 +0000
committerKeir Fraser <keir.fraser@citrix.com>2009-11-23 07:21:58 +0000
commit375f53964b1dc6ea8ea6d7057f77b3a43c4c7eca (patch)
tree6c20d4c3f67b410e73c99e11bc19ad0855617b38 /extras/mini-os/fs-front.c
parent995380cd80da7a5385e06d2ff0798b48cff64c15 (diff)
downloadxen-375f53964b1dc6ea8ea6d7057f77b3a43c4c7eca.tar.gz
xen-375f53964b1dc6ea8ea6d7057f77b3a43c4c7eca.tar.bz2
xen-375f53964b1dc6ea8ea6d7057f77b3a43c4c7eca.zip
minios: Fix xenbus_unwatch_path calls
In a lot of places in MiniOS frontends, xenbus_watch_path_token is used instead of xenbus_watch_path to get more precise wake ups. To free those, xenbus_unwatch_path_token has to be used instead of xenbus_unwatch_path, else the unwatch operation will fail. This fixes spurious watch events left by pv-grub. Signed-Off-By: Samuel Thibault <samuel.thibault@ens-lyon.org>
Diffstat (limited to 'extras/mini-os/fs-front.c')
-rw-r--r--extras/mini-os/fs-front.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/extras/mini-os/fs-front.c b/extras/mini-os/fs-front.c
index dd664caebc..59b240440b 100644
--- a/extras/mini-os/fs-front.c
+++ b/extras/mini-os/fs-front.c
@@ -1190,7 +1190,7 @@ done:
/* The token will not be unique if multiple imports are inited */
xenbus_watch_path_token(XBT_NIL, r_nodename, r_nodename, &events);
xenbus_wait_for_value(r_nodename, STATE_READY, &events);
- xenbus_unwatch_path(XBT_NIL, r_nodename);
+ xenbus_unwatch_path_token(XBT_NIL, r_nodename, r_nodename);
printk("Backend ready.\n");
//create_thread("fs-tester", test_fs_import, import);