Received: from eggs.gnu.org ([2001:4830:134:3::10]:33157) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c48vR-0003SE-6C for qemu-devel@nongnu.org; Tue, 08 Nov 2016 11:07:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c48vM-0003jG-Un for qemu-devel@nongnu.org; Tue, 08 Nov 2016 11:07:05 -0500 Date: Tue, 8 Nov 2016 16:06:46 +0000 From: Stefan Hajnoczi Message-ID: <20161108160646.GD11274@stefanha-x1.localdomain> References: <1478300595-10090-1-git-send-email-kwolf@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="lc9FT7cWel8HagAv" Content-Disposition: inline In-Reply-To: <1478300595-10090-1-git-send-email-kwolf@redhat.com> Subject: Re: [Qemu-devel] [Qemu-block] [PATCH for-2.8] block: Don't mark node clean after failed flush List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf Cc: qemu-block@nongnu.org, eyakovlev@virtuozzo.com, qemu-devel@nongnu.org, qemu-stable@nongnu.org, pbonzini@redhat.com, den@openvz.org --lc9FT7cWel8HagAv Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Nov 05, 2016 at 12:03:15AM +0100, Kevin Wolf wrote: > Commit 3ff2f67a changed bdrv_co_flush() so that no flush is issues if > the image hasn't been dirtied since the last flush. This is not quite > correct: The condition should be that the image hasn't been dirtied > since the last _successful_ flush. This patch changes the logic > accordingly. >=20 > Without this fix, subsequent bdrv_co_flush() calls would return success > without actually doing anything even though the image is still dirty. > The difference is visible in some blkdebug test cases where error > messages incorrectly disappeared after commit 3ff2f67a. >=20 > Cc: qemu-stable@nongnu.org > Signed-off-by: Kevin Wolf > --- > block/io.c | 4 +++- > tests/qemu-iotests/026.out | 22 ++++++++++++++++++++++ > tests/qemu-iotests/026.out.nocache | 22 ++++++++++++++++++++++ > tests/qemu-iotests/071.out | 2 ++ > 4 files changed, 49 insertions(+), 1 deletion(-) Thanks, applied to my block tree: https://github.com/stefanha/qemu/commits/block Stefan --lc9FT7cWel8HagAv Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJYIfgWAAoJEJykq7OBq3PIjUwIAKFae+DZWseiC5VIsOkQIiCE xtXAdYnyrIt0uJxcgN9afku70JOEPBtHFVzUvXS7Y6d9W8CaGFFSm0C1sxUIUsV/ z1i4Tn8Yrc1Zf3hZqJz0PjeaRUBTqS22JFunEgQtSV05BdCWK9eg7u8TMIKy6cCx yVM8gmnZroiFptcXYeJspwlt7e3E6Hi3UYa9bvzE1p6/aoKagGDSmQvf8NQNHgKA 6nT5EW6NNRxna287Nbn0K+WBsPA5re+gjGJ+nawUSd05OerS4YP7EmV6wu95LRXC IRFb5Nca9a970rMpPiwX8Yrug+e0VsEoXRPAuKZ2EsbHToO2QVwDCK1Ao+j26vQ= =6377 -----END PGP SIGNATURE----- --lc9FT7cWel8HagAv--