qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/2] coroutine: Assertions and debugging aids
@ 2016-08-11 16:22 Kevin Wolf
  2016-08-11 16:22 ` [Qemu-devel] [PATCH 1/2] coroutine: Let CoMutex remember who holds it Kevin Wolf
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Kevin Wolf @ 2016-08-11 16:22 UTC (permalink / raw)
  To: qemu-block; +Cc: kwolf, stefanha, pbonzini, qemu-devel

A while ago we were debugging a hang where coroutines were waiting for a mutex
to be unlocked, but we couldn't find out who held the lock. This series adds
some information to Coroutine and CoMutex that both allows to add a few
assertions to check locking behaviour and can be used to find the culprit when
analysing a core dump.

Kevin Wolf (2):
  coroutine: Let CoMutex remember who holds it
  coroutine: Assert that no locks are held on termination

 include/qemu/coroutine.h     |  1 +
 include/qemu/coroutine_int.h |  1 +
 util/qemu-coroutine-lock.c   | 14 ++++++++++++++
 util/qemu-coroutine.c        |  1 +
 4 files changed, 17 insertions(+)

-- 
1.8.3.1

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-08-15 12:18 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-11 16:22 [Qemu-devel] [PATCH 0/2] coroutine: Assertions and debugging aids Kevin Wolf
2016-08-11 16:22 ` [Qemu-devel] [PATCH 1/2] coroutine: Let CoMutex remember who holds it Kevin Wolf
2016-08-11 16:22 ` [Qemu-devel] [PATCH 2/2] coroutine: Assert that no locks are held on termination Kevin Wolf
2016-08-11 16:35 ` [Qemu-devel] [PATCH 0/2] coroutine: Assertions and debugging aids Paolo Bonzini
2016-08-12  9:55 ` [Qemu-devel] [Qemu-block] " Stefan Hajnoczi
2016-08-15 12:18 ` [Qemu-devel] " Kevin Wolf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).