]> git.proxmox.com Git - mirror_qemu.git/commit - block.c
block: wait_for_overlapping_requests() deadlock detection
authorStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Wed, 30 Nov 2011 12:23:42 +0000 (12:23 +0000)
committerKevin Wolf <kwolf@redhat.com>
Mon, 5 Dec 2011 13:52:34 +0000 (14:52 +0100)
commit5f8b6491f20732e0a31e64bbf75b62def579e044
tree2da9621db484711a4d29fdbf2df729c0545d0dcc
parentbd9533e36ea3d6c964f65b8e407bad00dab59e5d
block: wait_for_overlapping_requests() deadlock detection

Debugging a reentrant request deadlock was fun but in the future we need
a quick and obvious way of detecting such bugs.  Add an assert that
checks we are not about to deadlock when waiting for another request.

Suggested-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.c