|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH v2 2/2] tools/xenstore: simplify xenstored main loop
Hi Juergen, On 17/05/2021 07:10, Juergen Gross wrote: On 14.05.21 19:05, Julien Grall wrote:Hi Juergen, On 14/05/2021 12:56, Juergen Gross wrote:The main loop of xenstored is rather complicated due to different handling of socket and ring-page interfaces. Unify that handling by introducing interface type specific functions can_read() and can_write(). Signed-off-by: Juergen Gross <jgross@xxxxxxxx> --- V2: - split off function vector introduction (Julien Grall) --- tools/xenstore/xenstored_core.c | 77 +++++++++++++++---------------- tools/xenstore/xenstored_core.h | 2 + tools/xenstore/xenstored_domain.c | 2 + 3 files changed, 41 insertions(+), 40 deletions(-)diff --git a/tools/xenstore/xenstored_core.c b/tools/xenstore/xenstored_core.cindex 856f518075..883a1a582a 100644 --- a/tools/xenstore/xenstored_core.c +++ b/tools/xenstore/xenstored_core.c@@ -1659,9 +1659,34 @@ static int readfd(struct connection *conn, void *data, unsigned int len) Thanks, how about adding in the commit message:"Take the opportunity to remove the empty list check before calling write_messages() because the function is already able to cope with an empty list." I can update the commit message while committing it. Cheers, -- Julien Grall
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |