Received: from eggs.gnu.org ([2001:4830:134:3::10]:52202) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b1D4j-0001LN-Hj for qemu-devel@nongnu.org; Fri, 13 May 2016 09:24:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b1D4h-0003Mp-8E for qemu-devel@nongnu.org; Fri, 13 May 2016 09:24:16 -0400 References: <1462354765-14037-1-git-send-email-kwolf@redhat.com> <1462354765-14037-4-git-send-email-kwolf@redhat.com> From: Max Reitz Message-ID: <07d79ee1-8ff4-ba3f-5615-ebe0f9653423@redhat.com> Date: Fri, 13 May 2016 15:24:04 +0200 MIME-Version: 1.0 In-Reply-To: <1462354765-14037-4-git-send-email-kwolf@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="SHwFMJF56PJkFQv2QFF9jVR2nXMXmVFm5" Subject: Re: [Qemu-devel] [PATCH 03/14] block: Default to enabled write cache in blk_new() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf , qemu-block@nongnu.org Cc: jcody@redhat.com, jsnow@redhat.com, berto@igalia.com, qemu-devel@nongnu.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --SHwFMJF56PJkFQv2QFF9jVR2nXMXmVFm5 From: Max Reitz To: Kevin Wolf , qemu-block@nongnu.org Cc: jcody@redhat.com, jsnow@redhat.com, berto@igalia.com, qemu-devel@nongnu.org Message-ID: <07d79ee1-8ff4-ba3f-5615-ebe0f9653423@redhat.com> Subject: Re: [PATCH 03/14] block: Default to enabled write cache in blk_new() References: <1462354765-14037-1-git-send-email-kwolf@redhat.com> <1462354765-14037-4-git-send-email-kwolf@redhat.com> In-Reply-To: <1462354765-14037-4-git-send-email-kwolf@redhat.com> Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: quoted-printable On 04.05.2016 11:39, Kevin Wolf wrote: > The existing users of the function are: >=20 > 1. blk_new_open(), which already enabled the write cache > 2. Some test cases that don't care about the setting > 3. blockdev_init() for empty drives, where the cache mode is overridden= > with the value from the options when a medium is inserted >=20 > Therefore, this patch doesn't change the current behaviour. It will be > convenient, however, for additional users of blk_new() (like block > jobs) if the most sensible WCE setting is the default. >=20 > Signed-off-by: Kevin Wolf > --- > block/block-backend.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) Reviewed-by: Max Reitz --SHwFMJF56PJkFQv2QFF9jVR2nXMXmVFm5 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJXNdV0AAoJEDuxQgLoOKytCh8H/1MY/s4oGTyRzG2SVFA9G3s5 oBNdEDng93+lAmHPVEdTLNl7AO2jjd9kzcuCVtLHEQ6srCnYiQb6k9B8CR93eg6f hE8reN7AX6uUFAVJGr6fecav3nz6ykkbr7nINXogLrutP4HIKbmbr57Xi+cvEQ/4 qNcr2L2p55FPf/S5zIV6xS/DlDQl3t4MpnFrh6Tc5PoCy4M7SGytowZMWw+B5bnw vibmNYNeMZOKNmfuFLiHgaks5lcdhAwoVR79WiUfqsUvrVUARCmKj4CmVmgCwumm YPtuEX20Ap4LG0zUUorSmQfuwbDUJsN1Oo8zKBDjhT/rNnPtnIwPLB3FFy/uEnI= =zHTy -----END PGP SIGNATURE----- --SHwFMJF56PJkFQv2QFF9jVR2nXMXmVFm5--