summary refs log tree commit diff stats
path: root/qemu-io-cmds.c
diff options
context:
space:
mode:
authorJohn Snow <jsnow@redhat.com>2017-05-10 13:39:45 -0400
committerKevin Wolf <kwolf@redhat.com>2017-05-11 12:08:24 +0200
commit698bdfa07d66b5ec218a60229e58eae1dcde00e5 (patch)
tree75fc21add7dd149d544e2e488e313fb4f8f13c86 /qemu-io-cmds.c
parentc03e7ef12a954f715a4b56e3a9595f8253987701 (diff)
downloadfocaccia-qemu-698bdfa07d66b5ec218a60229e58eae1dcde00e5.tar.gz
focaccia-qemu-698bdfa07d66b5ec218a60229e58eae1dcde00e5.zip
blockdev: use drained_begin/end for qmp_block_resize
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1447551

If one tries to issue a block_resize while a guest is busy
accessing the disk, it is possible that qemu may deadlock
when invoking aio_poll from both the main loop and the iothread.

Replace another instance of bdrv_drain_all that doesn't
quite belong.

Cc: qemu-stable@nongnu.org
Suggested-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'qemu-io-cmds.c')
0 files changed, 0 insertions, 0 deletions