From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49802) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YI5dU-0007qe-N1 for qemu-devel@nongnu.org; Sun, 01 Feb 2015 20:17:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YI5dR-0003xz-Cx for qemu-devel@nongnu.org; Sun, 01 Feb 2015 20:17:08 -0500 Received: from [59.151.112.132] (port=26189 helo=heian.cn.fujitsu.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YI5dR-0003x4-24 for qemu-devel@nongnu.org; Sun, 01 Feb 2015 20:17:05 -0500 Message-ID: <54CED08C.2080501@cn.fujitsu.com> Date: Mon, 2 Feb 2015 09:19:08 +0800 From: Wen Congyang MIME-Version: 1.0 References: <54CB3BB4.80406@cn.fujitsu.com> <20150130133955.GB24537@noname.redhat.com> In-Reply-To: <20150130133955.GB24537@noname.redhat.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] quorum: don't share qiov List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf Cc: qemu-devl , Stefan Hajnoczi On 01/30/2015 09:39 PM, Kevin Wolf wrote: > Am 30.01.2015 um 09:07 hat Wen Congyang geschrieben: >> If the child touches qiov->iov, it will cause unexpected results. >> >> Signed-off-by: Wen Congyang > > Any specific child you're thinking of? > > I think children are not supposed to modify their qiov (which would also > fail for init_external qiovs). Perhaps we should have made it const. NBD client. The qiov will be modified in iov_send_recv(): nbd_co_writev() nbd_client_session_co_writev() nbd_co_writev_1() nbd_co_send_request() qemu_co_sendv() qemu_co_sendv_recvv() iov_send_recv() Thanks Wen Congyang > > Kevin >