[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] block: limited request size in write zeroes uns
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] [PATCH] block: limited request size in write zeroes unsupported path |
Date: |
Tue, 6 Jan 2015 15:42:54 +0000 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
On Mon, Jan 05, 2015 at 12:29:49PM +0100, Peter Lieven wrote:
> If bs->bl.max_write_zeroes is large and we end up in the unsupported
> path we might allocate a lot of memory for the iovector and/or even
> generate an oversized requests.
>
> Fix this by limiting the request by the minimum of the reported
> maximum transfer size or 16MB (32768 sectors).
>
> Reported-by: Denis V. Lunev <address@hidden>
> Signed-off-by: Peter Lieven <address@hidden>
> ---
> block.c | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
Thanks, applied to my block tree:
https://github.com/stefanha/qemu/commits/block
Stefan
pgpNhMwAVDBhc.pgp
Description: PGP signature