diff options
| author | Peter Lieven | 2017-03-16 17:02:49 +0100 |
|---|---|---|
| committer | Kevin Wolf | 2017-03-17 12:54:21 +0100 |
| commit | b7a745dc33a18377bb4a8dfe54d1df01ea60bf66 (patch) | |
| tree | 9c74188a1a049f02e91512244913b85f7930df7f /include | |
| parent | block: Propagate error in bdrv_open_backing_file (diff) | |
| download | qemu-b7a745dc33a18377bb4a8dfe54d1df01ea60bf66.tar.gz qemu-b7a745dc33a18377bb4a8dfe54d1df01ea60bf66.tar.xz qemu-b7a745dc33a18377bb4a8dfe54d1df01ea60bf66.zip | |
thread-pool: add missing qemu_bh_cancel in completion function
commit 3c80ca15 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: 3c80ca158c96ff902a30883a8933e755988948b1
Cc: qemu-stable@nongnu.org
Signed-off-by: Peter Lieven <pl@kamp.de>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
