|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] No need to gate xenstored reading requests from a
# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID b7dce4fe2488bf354e5718a84fdb82bed3919761
# Parent b67873a9e3acd8cee39ed68ea3924add7f7a26df
No need to gate xenstored reading requests from a
connection on whether there are pending replies/watches.
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
diff -r b67873a9e3ac -r b7dce4fe2488 tools/xenstore/xenstored_core.c
--- a/tools/xenstore/xenstored_core.c Sun Oct 9 22:53:03 2005
+++ b/tools/xenstore/xenstored_core.c Mon Oct 10 10:37:10 2005
@@ -324,8 +324,7 @@
list_for_each_entry(i, &connections, list) {
if (i->domain)
continue;
- if (list_empty(&i->out_list))
- FD_SET(i->fd, inset);
+ FD_SET(i->fd, inset);
if (!list_empty(&i->out_list))
FD_SET(i->fd, outset);
if (i->fd > max)
diff -r b67873a9e3ac -r b7dce4fe2488 tools/xenstore/xenstored_domain.c
--- a/tools/xenstore/xenstored_domain.c Sun Oct 9 22:53:03 2005
+++ b/tools/xenstore/xenstored_domain.c Mon Oct 10 10:37:10 2005
@@ -276,8 +276,7 @@
bool domain_can_read(struct connection *conn)
{
- return (list_empty(&conn->out_list) &&
- buffer_has_input(conn->domain->input));
+ return buffer_has_input(conn->domain->input);
}
bool domain_can_write(struct connection *conn)
diff -r b67873a9e3ac -r b7dce4fe2488 tools/xenstore/xenstored_transaction.c
--- a/tools/xenstore/xenstored_transaction.c Sun Oct 9 22:53:03 2005
+++ b/tools/xenstore/xenstored_transaction.c Mon Oct 10 10:37:10 2005
@@ -154,9 +154,9 @@
return;
}
- /* Set to NULL so fire_watches sends events, tdb_context works. */
trans = conn->transaction;
conn->transaction = NULL;
+
/* Attach transaction to arg for auto-cleanup */
talloc_steal(arg, trans);
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] No need to gate xenstored reading requests from a,
Xen patchbot -unstable <=
|
|
|
|
|