diff options
author | Simon Rettberg | 2019-08-06 14:06:27 +0200 |
---|---|---|
committer | Simon Rettberg | 2019-08-06 14:06:27 +0200 |
commit | 5dc776ac73be190daa2b2b8c3eb6042fdab4acda (patch) | |
tree | 9f22afe4bf2e35a9e973c0afa7c16214ac55c557 /src/server/globals.h | |
parent | [BENCH] Increase timeouts, fix block payload reading (diff) | |
download | dnbd3-5dc776ac73be190daa2b2b8c3eb6042fdab4acda.tar.gz dnbd3-5dc776ac73be190daa2b2b8c3eb6042fdab4acda.tar.xz dnbd3-5dc776ac73be190daa2b2b8c3eb6042fdab4acda.zip |
[SERVER] uplink: Improve attaching to existing requests
Allow attaching in ULR_PROCESSING state, leave lower slots empty
to increase chances attaching to ULR_PROCESSING.
Diffstat (limited to 'src/server/globals.h')
-rw-r--r-- | src/server/globals.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/server/globals.h b/src/server/globals.h index 7e5ff04..cd5ad7e 100644 --- a/src/server/globals.h +++ b/src/server/globals.h @@ -17,18 +17,6 @@ typedef struct _dnbd3_connection dnbd3_connection_t; typedef struct _dnbd3_image dnbd3_image_t; typedef struct _dnbd3_client dnbd3_client_t; -// Slot is free, can be used. -// Must only be set in uplink_handle_receive() or uplink_remove_client() -#define ULR_FREE 0 -// Slot has been filled with a request that hasn't been sent to the upstream server yet, matching request can safely rely on reuse. -// Must only be set in uplink_request() -#define ULR_NEW 1 -// Slot is occupied, reply has not yet been received, matching request can safely rely on reuse. -// Must only be set in uplink_mainloop() or uplink_request() -#define ULR_PENDING 2 -// Slot is being processed, do not consider for hop on. -// Must only be set in uplink_handle_receive() -#define ULR_PROCESSING 3 typedef struct { uint64_t handle; // Client defined handle to pass back in reply |