]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commit
mirror: fix early wake from sleep due to aio
authorStefan Hajnoczi <stefanha@redhat.com>
Fri, 21 Mar 2014 12:55:19 +0000 (13:55 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Tue, 25 Mar 2014 13:09:50 +0000 (14:09 +0100)
commit7b770c720b28b8ac5b82ae431f2f354b7f8add91
tree80ea19c13fa7c1cee21854bc1b96fdbf30fd25ac
parentcc8c9d6c6f28e4e376a6561a2a31524fd069bc2d
mirror: fix early wake from sleep due to aio

The mirror blockjob coroutine rate-limits itself by sleeping.  The
coroutine also performs I/O asynchronously so it's important that the
aio callback doesn't wake the coroutine early as that breaks
rate-limiting.

Reported-by: Joaquim Barrera <jbarrera@ac.upc.edu>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/mirror.c