Displaying 2 results from an estimated 2 matches for "594593a".
2019 May 22
0
[libnbd PATCH v3 2/7] commands: Allow for a command queue
...n *conn)
/*----- End of prologue. -----*/
/* STATE MACHINE */ {
+ READY:
+ if (conn->cmds_to_issue)
+ SET_NEXT_STATE (%ISSUE_COMMAND.START);
+ return 0;
+
DEAD:
if (conn->sock) {
conn->sock->ops->close (conn->sock);
diff --git a/lib/rw.c b/lib/rw.c
index 8f6227d..594593a 100644
--- a/lib/rw.c
+++ b/lib/rw.c
@@ -24,6 +24,7 @@
#include <stdint.h>
#include <inttypes.h>
#include <errno.h>
+#include <assert.h>
#include "internal.h"
@@ -247,7 +248,15 @@ nbd_internal_command_common (struct nbd_connection *conn,...
2019 May 22
12
[libnbd PATCH v3 0/7] Avoid deadlock with in-flight commands
Since v2:
- rebase to Rich's new API calls
- more refactoring in patch 1 (retitled)
- new patches 3 and 4
- fix data corruption in patch 6 (was 4)
- more tweaks to the reproducer example (including using new API from 3)
Eric Blake (7):
lib: Refactor command_common() to do more common work
commands: Allow for a command queue
commands: Expose FIFO ordering of server completions