]> git.proxmox.com Git - mirror_qemu.git/commit - block/qcow2.c
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)
commit42496d6240bfedc7ac6d92f04f92cff6c2e9f226
tree6cdc93f0d670c8e6c62fe6479d6ee94531c478af
parent7bf4162a801761792834e9e7da4b80b089434ce7
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