Displaying 1 result from an estimated 1 matches for "11e0db6".
2019 Jun 28
1
[libnbd PATCH] disconnect: Prevent any further commands
...CMD_DISC, 0, 0, NULL, NULL);
   if (id == -1)
     return -1;
+  h->disconnect_request = true;
   /* This will leave the command on the in-flight list.  Is this a
    * problem?  Probably it isn't.  If it is, we could add a flag to
diff --git a/lib/internal.h b/lib/internal.h
index 88ad703..11e0db6 100644
--- a/lib/internal.h
+++ b/lib/internal.h
@@ -191,6 +191,8 @@ struct nbd_handle {
   struct command_in_flight *cmds_to_issue, *cmds_in_flight, *cmds_done;
   /* Current command during a REPLY cycle */
   struct command_in_flight *reply_cmd;
+
+  bool disconnect_request;      /* True if we...