From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54894) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aHI3Z-0001tX-1l for qemu-devel@nongnu.org; Thu, 07 Jan 2016 16:25:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aHI3X-0004lb-VK for qemu-devel@nongnu.org; Thu, 07 Jan 2016 16:25:16 -0500 References: <1452174266-11594-1-git-send-email-pbonzini@redhat.com> <1452174266-11594-3-git-send-email-pbonzini@redhat.com> From: Max Reitz Message-ID: <568ED7B3.9030504@redhat.com> Date: Thu, 7 Jan 2016 22:25:07 +0100 MIME-Version: 1.0 In-Reply-To: <1452174266-11594-3-git-send-email-pbonzini@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="nbR0MNeX2cHb347HWK7LjMV25SpA5rueQ" Subject: Re: [Qemu-devel] [PATCH 2/2] nbd: do not exit on failed memory allocation List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini , qemu-devel@nongnu.org Cc: kwolf@redhat.com, sitsofe@yahoo.com, qemu-block@nongnu.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --nbR0MNeX2cHb347HWK7LjMV25SpA5rueQ Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: quoted-printable On 07.01.2016 14:44, Paolo Bonzini wrote: > The amount of memory allocated in nbd_co_receive_request is driven by t= he > 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. >=20 > Signed-off-by: Paolo Bonzini > --- > 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 --nbR0MNeX2cHb347HWK7LjMV25SpA5rueQ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJWjtezAAoJEDuxQgLoOKytGrkH/3rJl4t2T4EPAkacUixWZR3s t1JnV5i3UW6SWrQsYbq5XmrK7xWpiUkc/770TGHJl4Kd23enFic7UKW/XaVvIu25 efYR+ZK7eNIuEMwcQe6I7+KGxqTvTtdcleoPY3A1RatJnXm1C98ln+ykPdNHy1Vw NsmFcmF690F2x/qV6nPbpEMmtHHw8qV5iCKikQTxBmR6XAO23N0teNG3wpPpMdps FbaLFFF9C/G8qrW5nRWOdoRFdCKp0da6GbzQbOfPdFiCKUnc1mBY0M+zwdLBXtRA obgnhn7nZhCjuLYXq9581sc5i07vZT+jXAEA8V/NXRmSGy5INF/EYgnVtN3ZG8w= =yIbQ -----END PGP SIGNATURE----- --nbR0MNeX2cHb347HWK7LjMV25SpA5rueQ--