diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2017-01-12 19:07:51 +0100 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2017-01-16 13:25:17 +0000 |
commit | cf2c02c8ea0f2d7888f3b45b20e7eb24b47a93f1 (patch) | |
tree | acf9bc2c5cf7424e66dcac91b759e31d6360e617 /include/block | |
parent | 8f90b5e91df59fde0dfecc6738ff39f3edf14be5 (diff) |
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')
-rw-r--r-- | include/block/aio.h | 2 |
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; |