Re: [Qemu-devel] [PATCH v3 4/6] nbd: Rely on block layer to break up large requests

2016-07-18 Thread Paolo Bonzini
On 15/07/2016 20:32, Eric Blake wrote: > Now that the block layer will honor max_transfer, we can simplify > our code to rely on that guarantee. > > The readv code can call directly into nbd-client, just as the > writev code has done since commit 52a4650. > > Interestingly enough, while qemu-io

[Qemu-devel] [PATCH v3 4/6] nbd: Rely on block layer to break up large requests

2016-07-15 Thread Eric Blake
Now that the block layer will honor max_transfer, we can simplify our code to rely on that guarantee. The readv code can call directly into nbd-client, just as the writev code has done since commit 52a4650. Interestingly enough, while qemu-io 'w 0 40m' splits into a 32M and 8M transaction, 'w -z