Re: [Qemu-block] [PATCH 2/2] nbd/server: Optimize final chunk of sparse read

2017-11-09 Thread Vladimir Sementsov-Ogievskiy
07.11.2017 06:09, Eric Blake wrote: 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

[Qemu-block] [PATCH 2/2] nbd/server: Optimize final chunk of sparse read

2017-11-06 Thread Eric Blake
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 --- nbd/server.c | 13 +++--