]> git.proxmox.com Git - mirror_qemu.git/commit
blockdev: use drained_begin/end for qmp_block_resize
authorJohn Snow <jsnow@redhat.com>
Wed, 10 May 2017 17:39:45 +0000 (13:39 -0400)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Thu, 3 Aug 2017 19:29:55 +0000 (14:29 -0500)
commitaf8ca55a6b74f9907c33c72412ef7cb0fb256fc3
treefc15585b4b342e9c6c2c8f95dc27cae207ed4583
parent5797a36abd2069232c39c7acd57a34220fe11d21
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>
(cherry picked from commit 698bdfa07d66b5ec218a60229e58eae1dcde00e5)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
blockdev.c