Received: from eggs.gnu.org ([2001:4830:134:3::10]:50792) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ViNv1-000584-0k for qemu-devel@nongnu.org; Mon, 18 Nov 2013 07:27:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ViNus-0006li-DD for qemu-devel@nongnu.org; Mon, 18 Nov 2013 07:27:06 -0500 Received: from mail-wi0-x231.google.com ([2a00:1450:400c:c05::231]:51824) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ViNus-0006la-6J for qemu-devel@nongnu.org; Mon, 18 Nov 2013 07:26:58 -0500 Received: by mail-wi0-f177.google.com with SMTP id hq4so3717657wib.16 for ; Mon, 18 Nov 2013 04:26:57 -0800 (PST) From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Mon, 18 Nov 2013 13:25:17 +0100 Message-Id: <1384777531-14635-8-git-send-email-marcandre.lureau@gmail.com> In-Reply-To: <1384777531-14635-1-git-send-email-marcandre.lureau@gmail.com> References: <1384777531-14635-1-git-send-email-marcandre.lureau@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [Qemu-devel] [PATCH 07/21] nbd: don't change socket block during negotiate List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , jcody@redhat.com, kraxel@redhat.com, spice-devel@freedesktop.org From: Marc-André Lureau The caller might handle non-blocking using coroutine. Leave the choice to the caller to use a blocking or non-blocking negotiate. Signed-off-by: Marc-André Lureau --- nbd.c | 1 - 1 file changed, 1 deletion(-) diff --git a/nbd.c b/nbd.c index f847940..3af9d17 100644 --- a/nbd.c +++ b/nbd.c @@ -443,7 +443,6 @@ int nbd_receive_negotiate(int csock, const char *name, uint32_t *flags, TRACE("Receiving negotiation."); - qemu_set_block(csock); rc = -EINVAL; if (read_sync(csock, buf, 8) != 8) { -- 1.8.3.1