From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49406) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gJsHn-0004r9-AT for qemu-devel@nongnu.org; Mon, 05 Nov 2018 22:44:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gJsHm-0004oE-Lh for qemu-devel@nongnu.org; Mon, 05 Nov 2018 22:44:15 -0500 Date: Mon, 5 Nov 2018 22:44:01 -0500 From: "Michael S. Tsirkin" Message-ID: <20181105224354-mutt-send-email-mst@kernel.org> References: <20181105181353.39804-1-mst@redhat.com> <20181105181353.39804-6-mst@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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: Dongli Zhang Cc: Yaowei Bai , qemu-devel@nongnu.org, Kevin Wolf , Peter Maydell , qemu-block@nongnu.org, Max Reitz , Stefan Hajnoczi On Tue, Nov 06, 2018 at 11:17:03AM +0800, Dongli Zhang wrote: > > > 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. Makes sense. Patch? > > - * 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