From patchwork Mon Dec 17 06:17:27 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Yuan X-Patchwork-Id: 206784 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 1600D2C008C for ; Mon, 17 Dec 2012 17:35:15 +1100 (EST) Received: from localhost ([::1]:49843 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TkUID-0006OM-6G for incoming@patchwork.ozlabs.org; Mon, 17 Dec 2012 01:35:13 -0500 Received: from eggs.gnu.org ([208.118.235.92]:52395) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TkUEN-0000A2-H5 for qemu-devel@nongnu.org; Mon, 17 Dec 2012 01:34:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TkU1I-000514-SV for qemu-devel@nongnu.org; Mon, 17 Dec 2012 01:21:19 -0500 Received: from mail-pb0-f45.google.com ([209.85.160.45]:43627) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TkU1I-000510-LZ for qemu-devel@nongnu.org; Mon, 17 Dec 2012 01:17:44 -0500 Received: by mail-pb0-f45.google.com with SMTP id mc8so3595528pbc.4 for ; Sun, 16 Dec 2012 22:17:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=9A0H+W7AaHyzRhJwrJBVXVinfhFxNVU6BPX7WtyIk/Q=; b=JOh1aksLZid5dddjoDE2R2eHpppTPKagkln5LdXTVcuGvP0NyKlQwBwCmz9QgkfEGX pFiMvvk6vE2rwIfXpoZXhqfbw6j14cjvbHlEPRz5c3K9J1narlsjgJl7E3lxp+1uWFFM MDkov7P8UxZfIxr9IAO1AUw+QZXx/qLKA7QUyUiEGSwfa6doSsYAZRtn+Wkkgb0cy6ow xTn61GHQiJfHP/t5yBrET247z5Q3CK+n0JJoJsu/cdKhnz15hYdeY4KSrpPA/d63nciW 6bTElyea0lrwz4nodK/v1acgljwBkdjCDMH9V94WbLtYuatd+oTmArKqYYgvlUSfyaJW JOqw== Received: by 10.68.223.35 with SMTP id qr3mr40824597pbc.27.1355725064019; Sun, 16 Dec 2012 22:17:44 -0800 (PST) Received: from K55VM-ubuntu.taobao.ali.com ([182.92.247.2]) by mx.google.com with ESMTPS id zv10sm7603218pbc.76.2012.12.16.22.17.39 (version=SSLv3 cipher=OTHER); Sun, 16 Dec 2012 22:17:42 -0800 (PST) From: Liu Yuan To: qemu-devel@nongnu.org Date: Mon, 17 Dec 2012 14:17:27 +0800 Message-Id: <1355725047-5096-2-git-send-email-namei.unix@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1355725047-5096-1-git-send-email-namei.unix@gmail.com> References: <1355565174-5121-1-git-send-email-namei.unix@gmail.com> <1355725047-5096-1-git-send-email-namei.unix@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.160.45 Cc: Kevin Wolf , MORITA Kazutaka Subject: [Qemu-devel] [PATCH v2 2/2] sheepdog: pass oid directly to send_pending_req() 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 From: Liu Yuan Cc: MORITA Kazutaka Cc: Kevin Wolf Signed-off-by: Liu Yuan Reviewed-by: MORITA Kazutaka --- block/sheepdog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/sheepdog.c b/block/sheepdog.c index ef7bc81..ceabc00 100644 --- a/block/sheepdog.c +++ b/block/sheepdog.c @@ -724,7 +724,7 @@ static void coroutine_fn aio_read_response(void *opaque) * create requests are not allowed, so we search the * pending requests here. */ - send_pending_req(s, vid_to_data_oid(s->inode.vdi_id, idx)); + send_pending_req(s, aio_req->oid); } break; case AIOCB_READ_UDATA: