coroutine-lock: add mutex argument to CoQueue APIs
commit1ace7ceac507d90d50ecb2e13f7222beadb64d92
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 13 Feb 2017 18:12:43 +0000 (13 19:12 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Tue, 21 Feb 2017 11:39:40 +0000 (21 11:39 +0000)
tree0a457dc7da86284d408e13ceefc764b914b90b41
parentf8c6e1cbc3d397207bedabdb2932fd6e1d7484df
coroutine-lock: add mutex argument to CoQueue APIs

All that CoQueue needs in order to become thread-safe is help
from an external mutex.  Add this to the API.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Message-id: 20170213181244.16297-6-pbonzini@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/backup.c
block/io.c
block/nbd-client.c
block/qcow2-cluster.c
block/sheepdog.c
block/throttle-groups.c
hw/9pfs/9p.c
include/qemu/coroutine.h
util/qemu-coroutine-lock.c