[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCHv3 07/20] block: honour BlockLimits in bdrv_co_do
From: |
Eric Blake |
Subject: |
Re: [Qemu-devel] [PATCHv3 07/20] block: honour BlockLimits in bdrv_co_do_write_zeroes |
Date: |
Wed, 02 Oct 2013 10:37:31 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130923 Thunderbird/17.0.9 |
On 09/24/2013 07:35 AM, Peter Lieven wrote:
> Signed-off-by: Peter Lieven <address@hidden>
> ---
> block.c | 65
> +++++++++++++++++++++++++++++++++++++++++++++++----------------
> 1 file changed, 49 insertions(+), 16 deletions(-)
>
> diff --git a/block.c b/block.c
> index ac35cb5..580570a 100644
> --- a/block.c
> +++ b/block.c
> @@ -2710,32 +2710,65 @@ int coroutine_fn
> bdrv_co_copy_on_readv(BlockDriverState *bs,
> BDRV_REQ_COPY_ON_READ);
> }
>
> +
> + if (ret == -ENOTSUP) {
> + /* Fall back to bounce buffer if write zeroes is unsupported */
> + iov.iov_len = num * BDRV_SECTOR_SIZE;
Why 2 spaces?
But that's trivial.
Reviewed-by: Eric Blake <address@hidden>
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [Qemu-devel] [PATCHv3 07/20] block: honour BlockLimits in bdrv_co_do_write_zeroes,
Eric Blake <=