From patchwork Mon Apr 15 14:14:46 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Hajnoczi X-Patchwork-Id: 236618 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id C097D2C00DC for ; Tue, 16 Apr 2013 00:17:06 +1000 (EST) Received: from localhost ([::1]:52309 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1URkDQ-0008Up-Ts for incoming@patchwork.ozlabs.org; Mon, 15 Apr 2013 10:17:04 -0400 Received: from eggs.gnu.org ([208.118.235.92]:50798) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1URkBb-00069W-Ps for qemu-devel@nongnu.org; Mon, 15 Apr 2013 10:15:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1URkBV-00089A-DV for qemu-devel@nongnu.org; Mon, 15 Apr 2013 10:15:11 -0400 Received: from mx1.redhat.com ([209.132.183.28]:61338) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1URkBV-00087l-76 for qemu-devel@nongnu.org; Mon, 15 Apr 2013 10:15:05 -0400 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r3FEEtoE022377 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 15 Apr 2013 10:14:55 -0400 Received: from localhost (ovpn-112-34.ams2.redhat.com [10.36.112.34]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r3FEErfS005744; Mon, 15 Apr 2013 10:14:54 -0400 From: Stefan Hajnoczi To: Date: Mon, 15 Apr 2013 16:14:46 +0200 Message-Id: <1366035288-15840-2-git-send-email-stefanha@redhat.com> In-Reply-To: <1366035288-15840-1-git-send-email-stefanha@redhat.com> References: <1366035288-15840-1-git-send-email-stefanha@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.25 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 209.132.183.28 Cc: Kevin Wolf , Paolo Bonzini , Stefan Hajnoczi , Nick Thomas Subject: [Qemu-devel] [PATCH 1/3] nbd: unlock mutex in nbd_co_send_request() error path X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Signed-off-by: Stefan Hajnoczi --- block/nbd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/nbd.c b/block/nbd.c index eff683c..662df16 100644 --- a/block/nbd.c +++ b/block/nbd.c @@ -339,7 +339,7 @@ static int nbd_co_send_request(BDRVNBDState *s, struct nbd_request *request, ret = qemu_co_sendv(s->sock, qiov->iov, qiov->niov, offset, request->len); if (ret != request->len) { - return -EIO; + rc = -EIO; } } qemu_aio_set_fd_handler(s->sock, nbd_reply_ready, NULL,