Received: from eggs.gnu.org ([2001:4830:134:3::10]:44135) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bUDX5-0001GA-KG for qemu-devel@nongnu.org; Mon, 01 Aug 2016 09:45:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bUDX0-0003Dy-Vk for qemu-devel@nongnu.org; Mon, 01 Aug 2016 09:45:27 -0400 Received: from mx1.redhat.com ([209.132.183.28]:51458) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bUDX0-0003DY-Ph for qemu-devel@nongnu.org; Mon, 01 Aug 2016 09:45:22 -0400 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) (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 B26013B718 for ; Mon, 1 Aug 2016 13:45:21 +0000 (UTC) References: <1470020036-14024-1-git-send-email-famz@redhat.com> From: Laszlo Ersek Message-ID: <3dd172a8-7d57-454d-cbcc-5f0bc20fb32c@redhat.com> Date: Mon, 1 Aug 2016 15:45:19 +0200 MIME-Version: 1.0 In-Reply-To: <1470020036-14024-1-git-send-email-famz@redhat.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] virtio-blk: Remove stale comment about draining List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fam Zheng , qemu-devel@nongnu.org Cc: stefanha@redhat.com On 08/01/16 04:53, Fam Zheng wrote: > 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 > --- > 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 89eca65..3468a21 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); > while (s->rq) { > The thing I mildly dislike about patches that consist purely of code removal is that they don't show up in "git blame", so it's hard to get credit for them :) Which is a shame, beacuse code deletion is the best kind of patch! :) Reviewed-by: Laszlo Ersek Cheers! Laszlo