diff options
| author | Simon Rettberg | 2020-03-03 16:46:36 +0100 |
|---|---|---|
| committer | Simon Rettberg | 2020-03-03 16:48:26 +0100 |
| commit | 49a9cd2d89dd586db5e08c9d3e96b88a8e8346d7 (patch) | |
| tree | 25022482e9ea992a1e42a23cc6c66b09f003aee8 /src/server/threadpool.c | |
| parent | [SERVER] Expose image->problem bools as bitmask in RPC json data (diff) | |
| download | dnbd3-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/threadpool.c')
0 files changed, 0 insertions, 0 deletions
