Received: from eggs.gnu.org ([2001:4830:134:3::10]:45108) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gJs2y-0003Gq-4k for qemu-devel@nongnu.org; Mon, 05 Nov 2018 22:29:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gJrq3-0005gr-7S for qemu-devel@nongnu.org; Mon, 05 Nov 2018 22:15:40 -0500 References: <20181105181353.39804-1-mst@redhat.com> <20181105181353.39804-6-mst@redhat.com> From: Dongli Zhang Message-ID: Date: Tue, 6 Nov 2018 11:17:03 +0800 MIME-Version: 1.0 In-Reply-To: <20181105181353.39804-6-mst@redhat.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PULL 05/33] virtio-blk: fix comment for virtio_blk_rw_complete List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Yaowei Bai Cc: "Michael S. Tsirkin" , qemu-devel@nongnu.org, Kevin Wolf , Peter Maydell , qemu-block@nongnu.org, Max Reitz , Stefan Hajnoczi On 11/06/2018 02:15 AM, Michael S. Tsirkin wrote: > From: Yaowei Bai > > Here should be submit_requests, there is no submit_merged_requests > function. > > Signed-off-by: Yaowei Bai > Reviewed-by: Michael S. Tsirkin > Signed-off-by: Michael S. Tsirkin > --- > hw/block/virtio-blk.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/hw/block/virtio-blk.c b/hw/block/virtio-blk.c > index 225fe44b7a..83cf5c01f9 100644 > --- a/hw/block/virtio-blk.c > +++ b/hw/block/virtio-blk.c > @@ -97,8 +97,8 @@ static void virtio_blk_rw_complete(void *opaque, int ret) > > if (req->qiov.nalloc != -1) { > /* If nalloc is != 1 req->qiov is a local copy of the original Should it be "If nalloc is != -1" in the comment? Seems the initial state is -1. > - * external iovec. It was allocated in submit_merged_requests > - * to be able to merge requests. */ > + * external iovec. It was allocated in submit_requests to be > + * able to merge requests. */ > qemu_iovec_destroy(&req->qiov); > } > > Dongli Zhang