summaryrefslogtreecommitdiffstats
path: root/src/fuse/connection.h
diff options
context:
space:
mode:
authorSimon Rettberg2019-02-08 16:04:51 +0100
committerSimon Rettberg2019-02-08 16:04:51 +0100
commit8c185da50460916115c66ea8e3be16c71759e06a (patch)
treedbd3389aa2b975134b8a85732328ce929be80763 /src/fuse/connection.h
parent[SERVER] uplink: Dedicated function for handling link failure (diff)
downloaddnbd3-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.h3
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;