[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-block] [PATCH RFC 15/16] mirror: Lazily request aio context change

From: Fam Zheng
Subject: [Qemu-block] [PATCH RFC 15/16] mirror: Lazily request aio context change permission on target
Date: Tue, 21 Mar 2017 11:16:34 +0800

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

Signed-off-by: Fam Zheng <address@hidden>
 block/mirror.c | 1 +
 1 file changed, 1 insertion(+)

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);

reply via email to

[Prev in Thread] Current Thread [Next in Thread]