summaryrefslogtreecommitdiffstats
path: root/src/server/server.c
diff options
context:
space:
mode:
authorSimon Rettberg2020-03-03 16:46:36 +0100
committerSimon Rettberg2020-03-03 16:48:26 +0100
commit49a9cd2d89dd586db5e08c9d3e96b88a8e8346d7 (patch)
tree25022482e9ea992a1e42a23cc6c66b09f003aee8 /src/server/server.c
parent[SERVER] Expose image->problem bools as bitmask in RPC json data (diff)
downloaddnbd3-49a9cd2d89dd586db5e08c9d3e96b88a8e8346d7.tar.gz
dnbd3-49a9cd2d89dd586db5e08c9d3e96b88a8e8346d7.tar.xz
dnbd3-49a9cd2d89dd586db5e08c9d3e96b88a8e8346d7.zip
[SERVER] Optimize client handler for CMD_GET_BLOCK
Move CMD_GET_BLOCK out of switch block and mark as likely. Don't acquire and release cache map for every single request, but keep reference around and only release when a message other than CMD_GET_BLOCK arrives. On idle links, this should happen through CMD_KEEPALIVE every now and then.
Diffstat (limited to 'src/server/server.c')
0 files changed, 0 insertions, 0 deletions