Max Reitz 572b07bea1 qcow2: Always execute preallocate() in a coroutine
Some qcow2 functions (at least perform_cow()) expect s->lock to be
taken.  Therefore, if we want to make use of them, we should execute
preallocate() (as "preallocate_co") in a coroutine so that we can use
the qemu_co_mutex_* functions.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Message-id: 20171009215533.12530-3-mreitz@redhat.com
Cc: qemu-stable@nongnu.org
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Jeff Cody <jcody@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
2017-10-26 15:01:14 +02:00
..
2017-10-26 14:45:57 +02:00
2017-10-06 16:28:58 +02:00
2017-08-31 12:29:07 +02:00
2017-08-08 15:19:16 +02:00
2017-09-26 15:00:32 +02:00
2017-07-17 11:34:11 +08:00
2017-09-05 14:14:33 +01:00
2017-07-17 11:28:15 +08:00
2017-08-31 12:29:07 +02:00
2017-08-31 12:29:07 +02:00