From patchwork Fri Apr 23 15:30:56 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin Wolf X-Patchwork-Id: 50841 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id BFA3BB7D1A for ; Sat, 24 Apr 2010 02:23:36 +1000 (EST) Received: from localhost ([127.0.0.1]:58930 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O5LfA-00061O-EQ for incoming@patchwork.ozlabs.org; Fri, 23 Apr 2010 12:23:32 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O5Krn-0007oF-Jf for qemu-devel@nongnu.org; Fri, 23 Apr 2010 11:32:31 -0400 Received: from [140.186.70.92] (port=50604 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O5Krk-0007m4-Tk for qemu-devel@nongnu.org; Fri, 23 Apr 2010 11:32:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O5Kri-000618-4X for qemu-devel@nongnu.org; Fri, 23 Apr 2010 11:32:28 -0400 Received: from mx1.redhat.com ([209.132.183.28]:31368) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O5Krh-00060s-Sp for qemu-devel@nongnu.org; Fri, 23 Apr 2010 11:32:26 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o3NFWO6K030751 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 23 Apr 2010 11:32:24 -0400 Received: from localhost.localdomain (vpn2-9-155.ams2.redhat.com [10.36.9.155]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o3NFVOCT020467; Fri, 23 Apr 2010 11:32:22 -0400 From: Kevin Wolf To: aliguori@linux.vnet.ibm.com Date: Fri, 23 Apr 2010 17:30:56 +0200 Message-Id: <1272036658-26776-25-git-send-email-kwolf@redhat.com> In-Reply-To: <1272036658-26776-1-git-send-email-kwolf@redhat.com> References: <1272036658-26776-1-git-send-email-kwolf@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. Cc: kwolf@redhat.com, qemu-devel@nongnu.org Subject: [Qemu-devel] [PATCH 24/26] linux-aio: Fix typo in read() EINTR check X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: Stefan Hajnoczi Signed-off-by: Stefan Hajnoczi Signed-off-by: Kevin Wolf --- linux-aio.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/linux-aio.c b/linux-aio.c index 5e892b0..68f4b3d 100644 --- a/linux-aio.c +++ b/linux-aio.c @@ -123,7 +123,7 @@ static void qemu_laio_completion_cb(void *opaque) do { ret = read(s->efd, &val, sizeof(val)); - } while (ret == 1 && errno == EINTR); + } while (ret == -1 && errno == EINTR); if (ret == -1 && errno == EAGAIN) break;