]> git.proxmox.com Git - mirror_qemu.git/commit - include/block/aio.h
aio: make ctx->list_lock a QemuLockCnt, subsuming ctx->walking_bh
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 12 Jan 2017 18:07:53 +0000 (19:07 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Mon, 16 Jan 2017 13:25:17 +0000 (13:25 +0000)
commitd7c99a1282ca2de1c344b8aa91be5364e9c6aa8f
treee7ea12e8f68e634eb89b7a4f98c739442f6745b6
parent51dee5e465e1b3454a886792ca3e14b851e8e67d
aio: make ctx->list_lock a QemuLockCnt, subsuming ctx->walking_bh

This will make it possible to walk the list of bottom halves without
holding the AioContext lock---and in turn to call bottom half
handlers without holding the 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-4-pbonzini@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
async.c
include/block/aio.h