Alberto Garcia b3cf1c7cf8 qcow2: Allow reading both COW regions with only one request
Reading both COW regions requires two separate requests, but it's
perfectly possible to merge them and perform only one. This generally
improves performance, particularly on rotating disk drives. The
downside is that the data in the middle region is read but discarded.

This patch takes a conservative approach and only merges reads when
the size of the middle region is <= 16KB.

Signed-off-by: Alberto Garcia <berto@igalia.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2017-06-26 14:51:13 +02:00
..
2017-06-20 14:31:31 +02:00
2017-06-15 11:04:06 +02:00
2017-06-20 14:31:31 +02:00
2017-06-22 11:34:39 +01:00
2017-06-22 11:34:39 +01:00
2017-05-18 19:20:59 +02:00
2017-06-20 14:31:31 +02:00
2017-06-22 11:34:39 +01:00
2017-06-20 14:31:31 +02:00
2017-05-17 12:04:59 +02:00
2017-05-17 12:04:59 +02:00
2017-05-17 12:04:59 +02:00
2017-05-17 12:04:59 +02:00
2017-06-20 14:31:31 +02:00