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] No need to gate xenstored reading requests from a

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] No need to gate xenstored reading requests from a
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 10 Oct 2005 10:46:10 +0000
Delivery-date: Mon, 10 Oct 2005 10:43:41 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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 <=