Received: from eggs.gnu.org ([2001:4830:134:3::10]:38795) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bFgXn-00055Z-8r for qemu-devel@nongnu.org; Wed, 22 Jun 2016 07:42:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bFgXi-0000cx-Uj for qemu-devel@nongnu.org; Wed, 22 Jun 2016 07:42:06 -0400 Date: Wed, 22 Jun 2016 12:41:59 +0100 From: Stefan Hajnoczi Message-ID: <20160622114159.GE11330@stefanha-x1.localdomain> References: <1466465969-25315-1-git-send-email-eblake@redhat.com> <20160621102357.GG32560@stefanha-x1.localdomain> <5769BA22.4060508@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Q8BnQc91gJZX4vDc" Content-Disposition: inline In-Reply-To: <5769BA22.4060508@redhat.com> Subject: Re: [Qemu-devel] [PATCH 0/5] Auto-fragment large transactions at the block layer List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: qemu-devel@nongnu.org, kwolf@redhat.com, qemu-block@nongnu.org --Q8BnQc91gJZX4vDc Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jun 21, 2016 at 04:05:22PM -0600, Eric Blake wrote: > On 06/21/2016 04:23 AM, Stefan Hajnoczi wrote: > > On Mon, Jun 20, 2016 at 05:39:24PM -0600, Eric Blake wrote: > >> We have max_transfer documented in BlockLimits, but while we > >> honor it during pwrite_zeroes, we were blindly ignoring it > >> during pwritev and preadv, leading to multiple drivers having > >> to implement fragmentation themselves. This series moves > >> fragmentation to the block layer, then fixes the NBD driver to > >> use it; if you like this but it needs a v2, you can request that > >> I further do other drivers (I know at least iscsi and qcow2 do > >> some self-fragmenting and/or error reporting that can be > >> simplified by deferring fragmentation to the block layer). > >> >=20 > > I'm concerned that requests A & B which should be atomic can now be > > interleaved. > >=20 > > For example, two writes that are overlapping and fragmented. > > Applications expect to either see A or B on disk when both requests have > > completed. Fragmentation must serialize overlapping requests in order > > to prevent interleaved results where the application sees some of A and > > some of B when both requests have completed. > >=20 > > A similar scenario happens when A is a read and B is a write, too. Read > > A is supposed to see either "before B" or "after B". With fragmentation > > it can see "some of before B and some of after B". >=20 > This patch series doesn't change that, it just changes where the > atomicity is broken. I know but I needed to clarify what the right semantics are :). Stefan --Q8BnQc91gJZX4vDc Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJXanmHAAoJEJykq7OBq3PI7PUH/j4NCBnfAInv1nW2IgXeAgOa nC4VIOKRQS4KSq2cMY2a22kRgsLwgCg9WVj608dIkUOOATQ+7kL/b1kYWa2EWTU4 EC0osXHgWtUzc0Vp4gJ0JgWZLrzZlibPMOJj8AVDqDsvq8AZnau42POS+gfiE64y wHeOrxlDiPtyMCC9pK3ZHBojRUzBZpRTqIB6tTQiOLn0EGq+5qdKTlCD2uh0MjzF wmealy80PnLKByHuAA5T0/1enQPg9HqExVm1TTifs/cL4UyfHwZKGqPHxfAY0/5C Is6VcmCrXe0pz6Yt+KV/BLaHZW+sAcJPGMQYsIpPzLAetQKvcuVUgzeQsY82SzM= =RrxQ -----END PGP SIGNATURE----- --Q8BnQc91gJZX4vDc--