Displaying 4 results from an estimated 4 matches for "b0dab83".
2019 Jun 09
1
Re: [PATCH libnbd 2/3] states: Add handle h->wflags field.
...hrough to the socket layer if it supports them. The flags are reset
automatically when we move to another state.
---
generator/states.c | 10 +++++++---
lib/internal.h | 1 +
2 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/generator/states.c b/generator/states.c
index e879a83..b0dab83 100644
--- a/generator/states.c
+++ b/generator/states.c
@@ -91,8 +91,8 @@ send_from_wbuf (struct nbd_handle *h)
ssize_t r;
if (h->wlen == 0)
- return 0; /* move to next state */
- r = h->sock->ops->send (h, h->sock, h->wbuf, h->wlen, 0);
+ goto...
2019 Jun 08
6
[PATCH libnbd 0/3] states: Use MSG_MORE to coalesce messages.
Appears to have a measurable benefit, see 3/3 for test results.
Rich.
2019 Jun 29
0
[libnbd PATCH 2/6] generator: Allow DEAD state actions to run
...ET_NEXT_STATE (%.DEAD);
set_error (0, "no matching handle found for server reply, "
"this is probably a bug in the server");
- return -1;
+ return 0;
}
h->reply_cmd = cmd;
return 0;
diff --git a/generator/states.c b/generator/states.c
index b0dab83..deea73c 100644
--- a/generator/states.c
+++ b/generator/states.c
@@ -125,11 +125,13 @@ send_from_wbuf (struct nbd_handle *h)
return 0;
DEAD:
+ /* The caller should have used set_error() before reaching here */
+ assert (nbd_get_error ());
if (h->sock) {
h->sock->ops->cl...
2019 Jun 29
19
[libnbd PATCH 0/6] new APIs: aio_in_flight, aio_FOO_notify
I still need to wire in the use of *_notify functions into nbdkit to
prove whether it makes the code any faster or easier to maintain, but
at least the added example shows one good use case for the new API.
Eric Blake (6):
api: Add nbd_aio_in_flight
generator: Allow DEAD state actions to run
generator: Allow Int64 in callbacks
states: Prepare for aio notify callback
api: Add new