Message ID | 20170321031635.22123-8-famz@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/block/mirror.c b/block/mirror.c index ca4baa5..7101b11 100644 --- a/block/mirror.c +++ b/block/mirror.c @@ -1185,6 +1185,7 @@ static void mirror_start_job(const char *job_id, BlockDriverState *bs, target_is_backing = bdrv_chain_contains(bs, target); target_graph_mod = (backing_mode != MIRROR_LEAVE_BACKING_CHAIN); s->target = blk_new(BLK_PERM_WRITE | BLK_PERM_RESIZE | + BLK_PERM_AIO_CONTEXT_CHANGE | (target_graph_mod ? BLK_PERM_GRAPH_MOD : 0), BLK_PERM_WRITE_UNCHANGED | (target_is_backing ? BLK_PERM_CONSISTENT_READ |
What's done in the source's context change notifier is moving the target's context to follow the new one, so we request this permission here. Signed-off-by: Fam Zheng <famz@redhat.com> --- block/mirror.c | 1 + 1 file changed, 1 insertion(+)