block: Don't acquire AioContext in hmp_qemu_io()
commitc200c4a470fc89d9a2b2d1884b140b03fd31981f
authorKevin Wolf <kwolf@redhat.com>
Mon, 11 Dec 2017 14:33:17 +0000 (11 15:33 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 22 Dec 2017 14:03:41 +0000 (22 15:03 +0100)
treed2dc8d18ba8d14d4cf74a6f53ca7bf6095f726be
parent60369b86c427c6646c53b607b5a3e6b507ffe8d6
block: Don't acquire AioContext in hmp_qemu_io()

Commit 15afd94a047 added code to acquire and release the AioContext in
qemuio_command(). This means that the lock is taken twice now in the
call path from hmp_qemu_io(). This causes BDRV_POLL_WHILE() to hang for
any requests issued to nodes in a non-mainloop AioContext.

Dropping the first locking from hmp_qemu_io() fixes the problem.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
hmp.c