summaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2017-11-06 21:09:12 -0600
committerEric Blake <eblake@redhat.com>2018-01-08 09:12:23 -0600
commite2de3256c373fe32c7a7d9ef2f2093c643bb6656 (patch)
tree524aa4ff19872df73605600015ab6a597da2864b /block
parent418638d3e448e0ed79d55cc43a26f7a65c22007f (diff)
downloadqemu-e2de3256c373fe32c7a7d9ef2f2093c643bb6656.tar.gz
nbd/server: Optimize final chunk of sparse read
If we are careful to handle 0-length read requests correctly, we can optimize our sparse read to send the NBD_REPLY_FLAG_DONE bit on our last OFFSET_DATA or OFFSET_HOLE chunk rather than needing a separate chunk. Signed-off-by: Eric Blake <eblake@redhat.com> Message-Id: <20171107030912.23930-3-eblake@redhat.com> Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions