From patchwork Thu Aug 4 02:44:14 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fam Zheng X-Patchwork-Id: 9262559 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7662E60865 for ; Thu, 4 Aug 2016 02:48:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 609D628178 for ; Thu, 4 Aug 2016 02:48:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 52111282F5; Thu, 4 Aug 2016 02:48:00 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 2D3A628178 for ; Thu, 4 Aug 2016 02:47:59 +0000 (UTC) Received: from localhost ([::1]:37504 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bV8hS-00072f-C3 for patchwork-qemu-devel@patchwork.kernel.org; Wed, 03 Aug 2016 22:47:58 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35768) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bV8dz-0004vn-7W for qemu-devel@nongnu.org; Wed, 03 Aug 2016 22:44:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bV8dx-0005PV-As for qemu-devel@nongnu.org; Wed, 03 Aug 2016 22:44:22 -0400 Received: from mx1.redhat.com ([209.132.183.28]:52014) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bV8dx-0005PA-5c for qemu-devel@nongnu.org; Wed, 03 Aug 2016 22:44:21 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B7904C057FAA for ; Thu, 4 Aug 2016 02:44:20 +0000 (UTC) Received: from lemon.nay.redhat.com (dhcp-14-233.nay.redhat.com [10.66.14.233]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u742iEsJ012576; Wed, 3 Aug 2016 22:44:19 -0400 From: Fam Zheng To: qemu-devel@nongnu.org Date: Thu, 4 Aug 2016 10:44:14 +0800 Message-Id: <1470278654-13525-3-git-send-email-famz@redhat.com> In-Reply-To: <1470278654-13525-1-git-send-email-famz@redhat.com> References: <1470278654-13525-1-git-send-email-famz@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Thu, 04 Aug 2016 02:44:20 +0000 (UTC) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH v3 2/2] virtio-blk: Remove stale comment about draining X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: pbonzini@redhat.com, lersek@redhat.com, stefanha@redhat.com Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP This is stale after commit 6e40b3bf (virtio-blk: Use blk_drain() to drain IO requests), remove it. Suggested-by: Laszlo Ersek Signed-off-by: Fam Zheng Reviewed-by: Laszlo Ersek --- hw/block/virtio-blk.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/hw/block/virtio-blk.c b/hw/block/virtio-blk.c index 1e348b1..331d766 100644 --- a/hw/block/virtio-blk.c +++ b/hw/block/virtio-blk.c @@ -656,10 +656,6 @@ static void virtio_blk_reset(VirtIODevice *vdev) AioContext *ctx; VirtIOBlockReq *req; - /* - * This should cancel pending requests, but can't do nicely until there - * are per-device request lists. - */ ctx = blk_get_aio_context(s->blk); aio_context_acquire(ctx); blk_drain(s->blk);