summaryrefslogtreecommitdiffstats
path: root/block.h
diff options
context:
space:
mode:
authorStefan Hajnoczi2012-01-18 15:40:41 +0100
committerKevin Wolf2012-01-26 11:45:26 +0100
commit2d3735d3bf61d5c8e154a197a11535cc65044334 (patch)
treec752ee53d1d7265777a3289e5cf63b00ae462244 /block.h
parentcoroutine: add co_sleep_ns() coroutine sleep function (diff)
downloadqemu-2d3735d3bf61d5c8e154a197a11535cc65044334.tar.gz
qemu-2d3735d3bf61d5c8e154a197a11535cc65044334.tar.xz
qemu-2d3735d3bf61d5c8e154a197a11535cc65044334.zip
block: check bdrv_in_use() before blockdev operations
Long-running block operations like block migration and image streaming must have continual access to their block device. It is not safe to perform operations like hotplug, eject, change, resize, commit, or external snapshot while a long-running operation is in progress. This patch adds the missing bdrv_in_use() checks so that block migration and image streaming never have the rug pulled out from underneath them. Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block.h')
0 files changed, 0 insertions, 0 deletions