diff options
author | Simon Rettberg | 2019-02-08 16:04:51 +0100 |
---|---|---|
committer | Simon Rettberg | 2019-02-08 16:04:51 +0100 |
commit | 8c185da50460916115c66ea8e3be16c71759e06a (patch) | |
tree | dbd3389aa2b975134b8a85732328ce929be80763 /src/fuse/connection.h | |
parent | [SERVER] uplink: Dedicated function for handling link failure (diff) | |
download | dnbd3-8c185da50460916115c66ea8e3be16c71759e06a.tar.gz dnbd3-8c185da50460916115c66ea8e3be16c71759e06a.tar.xz dnbd3-8c185da50460916115c66ea8e3be16c71759e06a.zip |
[FUSE] Consider RTT of active connection for switch-decisions
Diffstat (limited to 'src/fuse/connection.h')
-rw-r--r-- | src/fuse/connection.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fuse/connection.h b/src/fuse/connection.h index 37bca88..929777a 100644 --- a/src/fuse/connection.h +++ b/src/fuse/connection.h @@ -10,10 +10,11 @@ struct _dnbd3_async; typedef struct _dnbd3_async { struct _dnbd3_async *next; // Next in this linked list (provate field, not set by caller) + dnbd3_signal_t* signal; // Used to signal the caller char* buffer; // Caller-provided buffer to be filled + uint64_t time; // When request was put on wire, 0 if not measuring uint64_t offset; uint32_t length; - dnbd3_signal_t* signal; // Used to signal the caller bool finished; // Will be set to true if the request has been handled bool success; // Will be set to true if the request succeeded } dnbd3_async_t; |