From: Max Reitz <mreitz@redhat.com>
To: Paolo Bonzini <pbonzini@redhat.com>, qemu-devel@nongnu.org
Cc: kwolf@redhat.com, sitsofe@yahoo.com, qemu-block@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 2/2] nbd: do not exit on failed memory allocation
Date: Thu, 7 Jan 2016 22:25:07 +0100 [thread overview]
Message-ID: <568ED7B3.9030504@redhat.com> (raw)
In-Reply-To: <1452174266-11594-3-git-send-email-pbonzini@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 592 bytes --]
On 07.01.2016 14:44, Paolo Bonzini wrote:
> The amount of memory allocated in nbd_co_receive_request is driven by the
> NBD client (possibly a virtual machine). Parallel I/O can cause the
> server to allocate a large amount of memory; check for failures and
> return ENOMEM in that case.
>
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> ---
> block/block-backend.c | 5 +++++
> include/sysemu/block-backend.h | 1 +
> nbd.c | 6 +++++-
> 3 files changed, 11 insertions(+), 1 deletion(-)
Reviewed-by: Max Reitz <mreitz@redhat.com>
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 473 bytes --]
next prev parent reply other threads:[~2016-01-07 21:25 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-07 13:44 [Qemu-devel] [PATCH 0/2] nbd: changes around allocating buffers for requests Paolo Bonzini
2016-01-07 13:44 ` [Qemu-devel] [PATCH 1/2] nbd: do not check request length except for reads and writes Paolo Bonzini
2016-01-07 21:17 ` Max Reitz
2016-01-07 13:44 ` [Qemu-devel] [PATCH 2/2] nbd: do not exit on failed memory allocation Paolo Bonzini
2016-01-07 21:25 ` Max Reitz [this message]
2016-02-08 14:56 ` [Qemu-devel] [Qemu-block] [PATCH 0/2] nbd: changes around allocating buffers for requests Stefan Hajnoczi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=568ED7B3.9030504@redhat.com \
--to=mreitz@redhat.com \
--cc=kwolf@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=sitsofe@yahoo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.