]> git.proxmox.com Git - mirror_qemu.git/commit - util/qemu-coroutine-lock.c
coroutine: Let CoMutex remember who holds it
authorKevin Wolf <kwolf@redhat.com>
Thu, 11 Aug 2016 15:45:06 +0000 (17:45 +0200)
committerKevin Wolf <kwolf@redhat.com>
Mon, 5 Sep 2016 17:06:48 +0000 (19:06 +0200)
commit0e438cdc932a785de72166af4641aafa103a6670
tree344e3bc5fde4623595a0ea77a1c9884bc8b9ef1b
parent8b2bd09338ae44e35a46e324cda566dbf17fc21c
coroutine: Let CoMutex remember who holds it

In cases of deadlocks, knowing who holds a given CoMutex is really
helpful for debugging. Keeping the information around doesn't cost much
and allows us to add another assertion to keep the code correct, so
let's just add it.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
include/qemu/coroutine.h
util/qemu-coroutine-lock.c