From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33816) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Upj6u-00074h-L5 for qemu-devel@nongnu.org; Thu, 20 Jun 2013 13:57:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Upj6t-00060B-Gn for qemu-devel@nongnu.org; Thu, 20 Jun 2013 13:57:28 -0400 Received: from mail-wg0-x236.google.com ([2a00:1450:400c:c00::236]:59587) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UpiwN-00024S-CG for qemu-devel@nongnu.org; Thu, 20 Jun 2013 13:46:35 -0400 Received: by mail-wg0-f54.google.com with SMTP id n11so5913180wgh.9 for ; Thu, 20 Jun 2013 10:46:34 -0700 (PDT) From: "=?UTF-8?q?Marc-Andr=C3=A9=20Lureau?=" Date: Thu, 20 Jun 2013 19:46:02 +0200 Message-Id: <1371750371-18491-4-git-send-email-marcandre.lureau@redhat.com> In-Reply-To: <1371750371-18491-1-git-send-email-marcandre.lureau@redhat.com> References: <1371750371-18491-1-git-send-email-marcandre.lureau@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [Qemu-devel] [PATCH 03/12] 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: spice-devel@lists.freedesktop.org, =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= The caller might handle non-blocking using coroutine. Leave the choice to the caller to use a blocking or non-blocking noegotiate. Signed-off-by: Marc-André Lureau --- nbd.c | 1 - 1 file changed, 1 deletion(-) diff --git a/nbd.c b/nbd.c index 2606403..2f8c946 100644 --- a/nbd.c +++ b/nbd.c @@ -442,7 +442,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.rc1.49.g8d97506