qcow2: Avoid direct AIO callback
authorKevin Wolf <kwolf@redhat.com>
Tue, 7 Jun 2011 13:04:32 +0000 (15:04 +0200)
committerKevin Wolf <kwolf@redhat.com>
Tue, 14 Jun 2011 15:03:25 +0000 (17:03 +0200)
commit329ac2df8df0526c0b977991677e084b21bdd996
tree6cdc93f0d670c8e6c62fe6479d6ee94531c478af
parentec35b4f47098ac3319fdffe186335543d8212c44
qcow2: Avoid direct AIO callback

bdrv_aio_* must not call the callback before returning to its caller. In qcow2,
this could happen in some error cases. This starts the real requests processing
in a BH to avoid this situation.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/qcow2.c