Received: from eggs.gnu.org ([2001:4830:134:3::10]:59520) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dwpEE-0004HB-7I for qemu-devel@nongnu.org; Tue, 26 Sep 2017 08:44:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dwpED-0004Yg-G3 for qemu-devel@nongnu.org; Tue, 26 Sep 2017 08:44:46 -0400 Date: Tue, 26 Sep 2017 15:44:25 +0300 From: Manos Pitsidianakis Message-ID: <20170926124425.ubuecf6haepcqeec@postretch> References: <20170923111411.18626-1-el13635@mail.ntua.gr> <20170926110024.GA13332@stefanha-x1.localdomain> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="tacsfwwxlqzjpgbe" Content-Disposition: inline In-Reply-To: <20170926110024.GA13332@stefanha-x1.localdomain> Subject: Re: [Qemu-devel] [PATCH v3 0/3] add bdrv_co_drain_begin/end BlockDriver callbacks List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: qemu-devel , qemu-block , Kevin Wolf , Fam Zheng , Max Reitz --tacsfwwxlqzjpgbe Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Sep 26, 2017 at 12:00:24PM +0100, Stefan Hajnoczi wrote: >On Sat, Sep 23, 2017 at 02:14:08PM +0300, Manos Pitsidianakis wrote: >> This patch series renames bdrv_co_drain to bdrv_co_drain_begin and adds = a new >> bdrv_co_drain_end callback to match bdrv_drained_begin/end and >> drained_begin/end of BdrvChild. This is needed because the throttle driv= er >> (block/throttle.c) needs a way to mark the end of the drain in order to = toggle >> io_limits_disabled correctly. >> >> Based-on: <20170918202529.28379-1-el13635@mail.ntua.gr> >> "block/throttle-groups.c: allocate RestartData on the heap" >> Which fixes a coroutine crash in block/throttle-groups.c >> >> v3: >> fixed commit message typo in first patch [Fam] >> rephrased doc comment based on mailing discussion >> v2: >> add doc for callbacks and change order of request polling for completi= on >> [Stefan] >> >> Manos Pitsidianakis (3): >> block: add bdrv_co_drain_end callback >> block: rename bdrv_co_drain to bdrv_co_drain_begin >> block/throttle.c: add bdrv_co_drain_begin/end callbacks >> >> include/block/block_int.h | 13 ++++++++++--- >> block/io.c | 48 +++++++++++++++++++++++++++++++++-------= ------- >> block/qed.c | 6 +++--- >> block/throttle.c | 18 ++++++++++++++++++ >> 4 files changed, 65 insertions(+), 20 deletions(-) > >Oops, this seems to cause a qemu-iotests failure. Please take a look: > >$ ./check -qcow2 184 >184 0s ... - output mismatch (see 184.out.bad) >--- /home/stefanha/qemu/tests/qemu-iotests/184.out 2017-09-19 14:51:46.673= 854437 +0100 >+++ 184.out.bad 2017-09-26 11:13:06.946610239 +0100 >@@ -142,6 +142,9 @@ > "guest": false > } > } >+./common.config: line 118: 9196 Segmentation fault (core dumped) ( = if [ -n "${QEMU_NEED_PID}" ]; then >+ echo $BASHPID > "${QEMU_TEST_DIR}/qemu-${_QEMU_HANDLE}.pid"; >+fi; exec "$QEMU_PROG" $QEMU_OPTIONS "$@" ) > Hey Stefan, This is fixed in=20 >> Based-on: <20170918202529.28379-1-el13635@mail.ntua.gr> >> "block/throttle-groups.c: allocate RestartData on the heap" >> Which fixes a coroutine crash in block/throttle-groups.c Which I sent before this series and is in Kevin's branch. --tacsfwwxlqzjpgbe Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEvy2VxhCrsoeMN1aIc2J8L2kN9xAFAlnKS6gACgkQc2J8L2kN 9xC2xBAAxa7tYOA0NsnL6j/oLLZHgJw0J92AIDc+LQ2vleBPh5/eUhzvewIg/iwM JSAr2s6B5gk1Y8CQm02qq03Yx/jRSBYztgx9wdh3HPsLsW6y5RxMqAph5dBiKgng GRqbcP7VfNuGbQ5+6j0tDeRESxQy2Eh63X7L9O6U0U9mkKbWIXdVORvLYdV4LpFL y8Vj/eQ+plHVqMoxdmaIV+jeXZRy7ilLS0kKGSqJHCo/jajMN5ZWdPA22Pkl8eCi rXORg63Pq17Ws0UfTZs2C96xPbugjZb8qIlyXYcQEeG+DhKubhuUjEC04fcuFtLw VAKrOCyz1WHmbqvulv6ndLJZK/s5xzwg+Kjjlmqd0sAtGwE/4O1QepoYATCD2NWa wYFKt0/hO8q2KsmNyndaqPtiPlJQSgRAkmtQ+kA+LFgO3cOQRqZp+O7DtTLgnQwi DStFP44cizgQD/l/3OZiQHOxtoidNSFPzK87axYRxOIQmQy3dKkh4JsO3buQBEQM mTiNYehcAcljiZxli7vE5u6sPMElsLUTmcF5mELd8w43NhYG1R/KuMzE6gilh4by CfV+eeZb1/lruF6fRGWzs0Up/fkgPmvZcHhHaS2gtsuDjBuDQUSeDEYon7z80Jcb cmkBLxAj4zzDQGrrK2azDTZSwn1Jg+oWh321aJNsTZsLHP14ouE= =fs06 -----END PGP SIGNATURE----- --tacsfwwxlqzjpgbe--