summaryrefslogtreecommitdiffstats
path: root/include/block/aio.h
diff options
context:
space:
mode:
authorPaolo Bonzini2017-01-12 19:07:51 +0100
committerStefan Hajnoczi2017-01-16 14:25:17 +0100
commitcf2c02c8ea0f2d7888f3b45b20e7eb24b47a93f1 (patch)
treeacf9bc2c5cf7424e66dcac91b759e31d6360e617 /include/block/aio.h
parentblock: get rid of bdrv_io_unplugged_begin/end (diff)
downloadqemu-cf2c02c8ea0f2d7888f3b45b20e7eb24b47a93f1.tar.gz
qemu-cf2c02c8ea0f2d7888f3b45b20e7eb24b47a93f1.tar.xz
qemu-cf2c02c8ea0f2d7888f3b45b20e7eb24b47a93f1.zip
aio: rename bh_lock to list_lock
This will be used for AioHandlers too. There is going to be little or no contention, so it is better to reuse the same lock. Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Fam Zheng <famz@redhat.com> Message-id: 20170112180800.21085-2-pbonzini@redhat.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'include/block/aio.h')
-rw-r--r--include/block/aio.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/block/aio.h b/include/block/aio.h
index 4dca54d9c7..013d4002f6 100644
--- a/include/block/aio.h
+++ b/include/block/aio.h
@@ -91,7 +91,7 @@ struct AioContext {
uint32_t notify_me;
/* lock to protect between bh's adders and deleter */
- QemuMutex bh_lock;
+ QemuMutex list_lock;
/* Anchor of the list of Bottom Halves belonging to the context */
struct QEMUBH *first_bh;