Received: from eggs.gnu.org ([2001:4830:134:3::10]:34570) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c9AW5-0007V9-7V for qemu-devel@nongnu.org; Tue, 22 Nov 2016 07:49:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c9AW4-0000Ss-AP for qemu-devel@nongnu.org; Tue, 22 Nov 2016 07:49:41 -0500 References: <1479749488-31808-1-git-send-email-kwolf@redhat.com> <1479749488-31808-8-git-send-email-kwolf@redhat.com> <122bc834-8ab3-ce9d-2b22-8459afe6feee@redhat.com> <20161122114520.GC5615@noname.redhat.com> From: Eric Blake Message-ID: <14b26815-5e90-8498-0db3-5ec7f47283c8@redhat.com> Date: Tue, 22 Nov 2016 06:49:32 -0600 MIME-Version: 1.0 In-Reply-To: <20161122114520.GC5615@noname.redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="W466eVBQdLcLuSaQUOrlOugD46NOlj9xe" Subject: Re: [Qemu-devel] [PATCH 7/8] quorum: Implement .bdrv_co_preadv/pwritev() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf Cc: qemu-block@nongnu.org, berto@igalia.com, mreitz@redhat.com, qemu-devel@nongnu.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --W466eVBQdLcLuSaQUOrlOugD46NOlj9xe From: Eric Blake To: Kevin Wolf Cc: qemu-block@nongnu.org, berto@igalia.com, mreitz@redhat.com, qemu-devel@nongnu.org Message-ID: <14b26815-5e90-8498-0db3-5ec7f47283c8@redhat.com> Subject: Re: [PATCH 7/8] quorum: Implement .bdrv_co_preadv/pwritev() References: <1479749488-31808-1-git-send-email-kwolf@redhat.com> <1479749488-31808-8-git-send-email-kwolf@redhat.com> <122bc834-8ab3-ce9d-2b22-8459afe6feee@redhat.com> <20161122114520.GC5615@noname.redhat.com> In-Reply-To: <20161122114520.GC5615@noname.redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 11/22/2016 05:45 AM, Kevin Wolf wrote: >> >> Is it worth adding assert(!flags)? For now, the block layer doesn't >> have any defined flags (and if it did, we'd probably want to add a >> .supported_read_flags to parallel the existing .supported_write_flags)= =2E >=20 > I don't think we need to assert this, no other driver does that. We hav= e > .supported_write_flags and I would indeed add .supported_read_flags > if/when we start using flags for read requests, so we can be reasonably= > sure that only those flags are set even without asserting it. Seems reasonable. >=20 >> [Huh - side thought: right now, we don't have any defined semantics fo= r >> BDRV_REQUEST_FUA on reads (although we modeled it in part after SCSI, >> which does have it defined for reads). But quorum rewrites on read >> might be an interesting application of where we can trigger a write >> during reads, and where we may want to guarantee FUA semantics on thos= e >> writes, thus making a potentially plausible use of the flag on read] >=20 > Makes sense to me, but that's something for a different series. And > actually, I'm not sure who would even send a read with FUA set today. > Can this even happen yet? Our iscsi backend has to emulate guests that send FUA on a SCSI read command (since the SCSI spec has defined semantics for it); right now, it does that by ignoring the flag (if I read the code correctly). The NBD spec also says that clients MAY send FUA on any command including read, but that the server MAY ignore FUA on all but writes. Our NBD client code used to send the FUA bit on flush (but not read), but I ripped that out in a89ef0c. So yeah, it's definitely something for a different series, if ever. --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --W466eVBQdLcLuSaQUOrlOugD46NOlj9xe 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 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJYND7cAAoJEKeha0olJ0Nqh5AIAJSORse7aRBpIPHUE33ZNkEi D67IJ27r36EGM6xOZasYbABDXca41d/zKufR1vOre1Hp3VqHPKnO3yyPvpNJbXl7 6VNejA2PCt0eRxKszKNLvKbk0Dj+UByDCOApryqdQB4gVe6MJGWAjTIPWu51aMtK 8f0GO1/y5gOZ/7oSJIos+Kj0VpcU9/InNPQYrX9OCp+8ljBOkwVFzC2mRIK16ZcC 91oVM7N4f9qiF1TZhzgZpvMqYvYfx88MMFqGXKalZuOO07uxfjgEAaLIgyEgrSwT tI6UthUPHd+ALjVl3gYAenF6YguLpRilAzFsifSmFCWkyUUaiIWllJs8jKeFAPk= =QtOS -----END PGP SIGNATURE----- --W466eVBQdLcLuSaQUOrlOugD46NOlj9xe--