Received: from eggs.gnu.org ([2001:4830:134:3::10]:44647) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YzPFg-0008FO-K4 for qemu-devel@nongnu.org; Mon, 01 Jun 2015 08:55:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YzPFf-0004yJ-Np for qemu-devel@nongnu.org; Mon, 01 Jun 2015 08:55:36 -0400 Date: Mon, 1 Jun 2015 13:55:28 +0100 From: Stefan Hajnoczi Message-ID: <20150601125528.GB28639@stefanha-thinkpad.redhat.com> References: <1432866133-21111-1-git-send-email-famz@redhat.com> <20150529123751.GG8598@stefanha-thinkpad.redhat.com> <20150601014639.GA23513@dhcp-14-238.nay.redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="gj572EiMnwbLXET9" Content-Disposition: inline In-Reply-To: <20150601014639.GA23513@dhcp-14-238.nay.redhat.com> Subject: Re: [Qemu-devel] [Qemu-block] [PATCH] mirror: Skip block_job_defer_to_main_loop if already in the main context List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fam Zheng Cc: Stefan Hajnoczi , Jeff Cody , qemu-devel@nongnu.org, qemu-block@nongnu.org, pbonzini@redhat.com --gj572EiMnwbLXET9 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jun 01, 2015 at 09:46:39AM +0800, Fam Zheng wrote: > On Fri, 05/29 13:37, Stefan Hajnoczi wrote: > > On Fri, May 29, 2015 at 10:22:13AM +0800, Fam Zheng wrote: > > > mirror_exit does the replacing, which requires source and target to be > > > in sync, unfortunately we can't guarantee that before we have a compl= ete > > > block pause mechanism. So for non-dataplane block jobs, let's do the = old > > > thing as pre commit 5a7e7a0ba (block: let mirror blockjob run in BDS > > > AioContext) - directly call mirror_exit(). > > >=20 > > > Dataplane case is taken care of in separate patches. > > >=20 > > > Suggested-by: Paolo Bonzini > > > Signed-off-by: Fam Zheng > > > --- > > > block/mirror.c | 6 +++++- > > > 1 file changed, 5 insertions(+), 1 deletion(-) > >=20 > > Please CC Jeff Cody on blockjob patches. >=20 > Didn't I? Oops, sorry I missed it. Stefan --gj572EiMnwbLXET9 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJVbFZAAAoJEJykq7OBq3PIYwcH/AsqTO/HrWZIUUgNh+yEkI6V /0jMSQK25WqvyrYfm1dOIaQF+O/mSVbJtl2E8+uw+z4cEc3oyBO+khmQA2qkJZ1T RV6LKS0WPO2KPQ4zeSJbs4ZWt7ZYeikGejvoZgYUCzPn8q6BTPQw4YolK6zwhBwu w8giQGcIaKqISJzvi0epJtSe15kemunD/gdFT6o7yx9rvXKMxKyIRC5kcqxH++yW D21NLEoVvdgB+0KcwCbFDduqUiFX9p7JqYkLmIB/BHskeAnLsNJI0LGidAaZzbgN jd02plufNeuGR0bx2RW8f/58w9Vfdn/XTZS+Ibtpo8BF0rp1hAPhWzMvnMiUI+8= =ieEk -----END PGP SIGNATURE----- --gj572EiMnwbLXET9--