On 12/19/19 4:03 AM, Vladimir Sementsov-Ogievskiy wrote:
Use bdrv_dirty_bitmap_next_dirty_area for bitmap_to_extents. Since
bdrv_dirty_bitmap_next_dirty_area is very accurate in its interface,
we'll never exceed requested region with last chunk. So, we don't need
dont_fragment, and bitmap_to_extents() interface becomes clean enough
to not require any comment.

Not exceeding the requested region means we are giving the client less information than what we already have freely available. I don't know if that will (slightly) pessimize any client that would have otherwise been able to handle the fact that we reported beyond the request (only matters for clients which do not use NBD_CMD_FLAG_REQ_ONE).


Signed-off-by: Vladimir Sementsov-Ogievskiy <vsement...@virtuozzo.com>
Reviewed-by: Eric Blake <ebl...@redhat.com>

But since I've already reviewed it, my R-b still stands.

---
  nbd/server.c | 59 +++++++++++++++++-----------------------------------
  1 file changed, 19 insertions(+), 40 deletions(-)


--
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3226
Virtualization:  qemu.org | libvirt.org


Reply via email to