On 20.05.2015 08:16, Fam Zheng wrote:
It blocks device IO.
All bdrv_op_block_all/blk_op_block_all callers are taken care of:
- virtio_blk_data_plane_create
- virtio_scsi_hotplug
Device creation, unblock it.
- bdrv_set_backing_hd
Backing hd is not used by device, so blocking is OK.
- backup_start
Blocking target when backup is running, unblock it.
- mirror_complete
Blocking s->to_replace until mirror_exit, OK.
- block_job_complete
The block job may be long running. Unblock it.
- init_blk_migration
The block migration may be long running, Unblock it.
Signed-off-by: Fam Zheng <f...@redhat.com>
---
blockjob.c | 1 +
hw/block/dataplane/virtio-blk.c | 1 +
hw/scsi/virtio-scsi.c | 1 +
include/block/block.h | 1 +
migration/block.c | 1 +
5 files changed, 5 insertions(+)
Reviewed-by: Max Reitz <mre...@redhat.com>