aboutsummaryrefslogtreecommitdiffstats
path: root/tools/xenstore/xenstored_watch.h
diff options
context:
space:
mode:
authorcl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk>2005-07-26 15:26:32 +0000
committercl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk>2005-07-26 15:26:32 +0000
commiteb825f79cb6e0939871180692808f241fe5ddc93 (patch)
tree5b67c7f5cb99233e1f683f53266e594f74218c77 /tools/xenstore/xenstored_watch.h
parentdfc7e02e7ab3715f098e8a6c4105016b0862c5df (diff)
downloadxen-eb825f79cb6e0939871180692808f241fe5ddc93.tar.gz
xen-eb825f79cb6e0939871180692808f241fe5ddc93.tar.bz2
xen-eb825f79cb6e0939871180692808f241fe5ddc93.zip
Remove ill-conceived concept of watches blocking reply on
connection which did write/mkdir/rm/setperm etc. This causes deadlocks in real life, and I can't see a sane way of avoiding them: it is reasonable for someone to ignore watch notifications while doing other actions, and that means that we can do other writes. These writes can block pending other watchers; if one of these is the process blocked awaiting our ack, we deadlock. Signed-off-by: Rusty Russel <rusty@rustcorp.com.au> Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
Diffstat (limited to 'tools/xenstore/xenstored_watch.h')
-rw-r--r--tools/xenstore/xenstored_watch.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/xenstore/xenstored_watch.h b/tools/xenstore/xenstored_watch.h
index d1fac70502..30d7e9e172 100644
--- a/tools/xenstore/xenstored_watch.h
+++ b/tools/xenstore/xenstored_watch.h
@@ -33,9 +33,8 @@ bool is_watch_event(struct connection *conn, struct buffered_data *out);
void queue_next_event(struct connection *conn);
/* Fire all watches: recurse means all the children are effected (ie. rm).
- * Returns true if there were any, meaning connection has to wait.
*/
-bool fire_watches(struct connection *conn, const char *node, bool recurse);
+void fire_watches(struct connection *conn, const char *node, bool recurse);
/* Find shortest timeout: if any, reduce tv (may already be set). */
void shortest_watch_ack_timeout(struct timeval *tv);