From: Eric Blake <eblake@redhat.com>
To: Stefan Hajnoczi <stefanha@redhat.com>, qemu-devel@nongnu.org
Cc: Kevin Wolf <kwolf@redhat.com>,
andrey@xdel.ru, Fam Zheng <famz@redhat.com>,
sviatoslav.pestov@gmail.com
Subject: Re: [Qemu-devel] [PATCH v2 1/2] block: fix overlapping multiwrite requests
Date: Wed, 30 Jul 2014 05:23:27 -0600 [thread overview]
Message-ID: <53D8D5AF.2000704@redhat.com> (raw)
In-Reply-To: <1406710411-26373-2-git-send-email-stefanha@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 1080 bytes --]
On 07/30/2014 02:53 AM, Stefan Hajnoczi wrote:
> When request A is a strict superset of request B:
>
> AAAAAAAA
> BBBB
>
> multiwrite_merge() merges them as follows:
>
> AABBBB
>
> The tail of request A should have been included:
>
> AABBBBAA
>
> This patch fixes data loss but this code path is probably rare. Since
> guests cannot assume ordering between in-flight requests, few
> applications submit overlapping write requests.
>
> Reported-by: Slava Pestov <sviatoslav.pestov@gmail.com>
> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
> ---
> block.c | 6 ++++++
> 1 file changed, 6 insertions(+)
>
Reviewed-by: Eric Blake <eblake@redhat.com>
Technically a bug fix, so okay for 2.1 if desired; but it is awfully
late and as you said it is fairly unlikely for guests to be relying on
overlapping multiwrite, so I'm okay with the decision to delay it to 2.2
and just have stable 2.1.1/downstream backports.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 539 bytes --]
next prev parent reply other threads:[~2014-07-30 11:23 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-30 8:53 [Qemu-devel] [PATCH v2 0/2] block: fix multiwrite_merge() overlapping requests Stefan Hajnoczi
2014-07-30 8:53 ` [Qemu-devel] [PATCH v2 1/2] block: fix overlapping multiwrite requests Stefan Hajnoczi
2014-07-30 11:23 ` Eric Blake [this message]
2014-07-31 7:41 ` Benoît Canet
2014-07-30 8:53 ` [Qemu-devel] [PATCH v2 2/2] qemu-iotests: add multiwrite test cases Stefan Hajnoczi
2014-07-30 11:19 ` Eric Blake
2014-07-31 7:46 ` Benoît Canet
2014-08-29 13:10 ` [Qemu-devel] [PATCH v2 0/2] block: fix multiwrite_merge() overlapping requests Stefan Hajnoczi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=53D8D5AF.2000704@redhat.com \
--to=eblake@redhat.com \
--cc=andrey@xdel.ru \
--cc=famz@redhat.com \
--cc=kwolf@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.com \
--cc=sviatoslav.pestov@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).