Signed-off-by: Fam Zheng <[email protected]>
---
blockjob.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/blockjob.c b/blockjob.c
index 6e48932..b20fb86 100644
--- a/blockjob.c
+++ b/blockjob.c
@@ -214,6 +214,9 @@ void *block_job_create(const char *job_id, const
BlockJobDriver *driver,
}
}
+ /* The notifier we'll register on @blk takes care of following context
+ * change, so permit it. */
+ shared_perm |= BLK_PERM_AIO_CONTEXT_CHANGE;
blk = blk_new(perm, shared_perm);
ret = blk_insert_bs(blk, bs, errp);
if (ret < 0) {
--
2.9.3