Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
thread-pool: add missing qemu_bh_cancel in completion function
commit 3c80ca1 fixed a deadlock scenarion with nested aio_poll invocations. However, the rescheduling of the completion BH introcuded unnecessary spinning in the main-loop. On very fast file backends this can even lead to the "WARNING: I/O thread spun for 1000 iterations" message popping up. Callgrind reports about 3-4% less instructions with this patch running qemu-img bench on a ramdisk based VMDK file. Fixes: 3c80ca1 Cc: [email protected] Signed-off-by: Peter Lieven <[email protected]> Signed-off-by: Kevin Wolf <[email protected]>
- Loading branch information