Message ID | 20170321031635.22123-16-famz@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/block/mirror.c b/block/mirror.c index ed26e8c..168cf60 100644 --- a/block/mirror.c +++ b/block/mirror.c @@ -983,6 +983,7 @@ static void mirror_attached_aio_context(BlockJob *job, AioContext *new_context) { MirrorBlockJob *s = container_of(job, MirrorBlockJob, common); + blk_request_perm(s->target, BLK_PERM_AIO_CONTEXT_CHANGE, &error_abort); blk_set_aio_context(s->target, new_context); }
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(+)