diff options
author | Stefan Hajnoczi <stefanha@redhat.com> | 2014-07-30 09:53:30 +0100 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2014-08-29 14:09:43 +0100 |
commit | 391827eb106d2d02062b2582d1545a7c221631c6 (patch) | |
tree | 74840acba94091d0ab90caa619f2dd9b0754ab00 /tests/qemu-iotests/group | |
parent | f21492817bc426a3bc0b98fa852df95be9dea1e8 (diff) |
block: fix overlapping multiwrite requests
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>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Benoit Canet <benoit@irqsave.net>
Diffstat (limited to 'tests/qemu-iotests/group')
0 files changed, 0 insertions, 0 deletions