[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-block] [PATCH RFC 05/16] backup: Request BLK_PERM_AIO_CONTEXT_CHAN
From: |
Fam Zheng |
Subject: |
[Qemu-block] [PATCH RFC 05/16] backup: Request BLK_PERM_AIO_CONTEXT_CHANGE on target |
Date: |
Tue, 21 Mar 2017 11:16:24 +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
here.
Signed-off-by: Fam Zheng <address@hidden>
---
block/backup.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/block/backup.c b/block/backup.c
index a4fb288..546c5c5 100644
--- a/block/backup.c
+++ b/block/backup.c
@@ -636,7 +636,7 @@ BlockJob *backup_job_create(const char *job_id,
BlockDriverState *bs,
}
/* The target must match the source in size, so no resize here either */
- job->target = blk_new(BLK_PERM_WRITE,
+ job->target = blk_new(BLK_PERM_WRITE | BLK_PERM_AIO_CONTEXT_CHANGE,
BLK_PERM_CONSISTENT_READ | BLK_PERM_WRITE |
BLK_PERM_WRITE_UNCHANGED | BLK_PERM_GRAPH_MOD);
ret = blk_insert_bs(job->target, target, errp);
--
2.9.3
- [Qemu-block] [PATCH RFC 00/16] block: Protect AIO context change with perm API, Fam Zheng, 2017/03/20
- [Qemu-block] [PATCH RFC 01/16] block: Define BLK_PERM_AIO_CONTEXT_CHANGE, Fam Zheng, 2017/03/20
- [Qemu-block] [PATCH RFC 02/16] block-backend: Add blk_request_perm, Fam Zheng, 2017/03/20
- [Qemu-block] [PATCH RFC 03/16] blockjob: Add BLK_PERM_AIO_CONTEXT_CHANGE shared perm on bs, Fam Zheng, 2017/03/20
- [Qemu-block] [PATCH RFC 04/16] block: Propagate BLK_PERM_AIO_CONTEXT_CHANGE down the graph, Fam Zheng, 2017/03/20
- [Qemu-block] [PATCH RFC 05/16] backup: Request BLK_PERM_AIO_CONTEXT_CHANGE on target,
Fam Zheng <=
- [Qemu-block] [PATCH RFC 06/16] backup: Do initial aio context move of target via BB interface, Fam Zheng, 2017/03/20
- [Qemu-block] [PATCH RFC 07/16] mirror: Request aio context change permission on target, Fam Zheng, 2017/03/20
- [Qemu-block] [PATCH RFC 08/16] commit: Allow aio context change on s->base, Fam Zheng, 2017/03/20
- [Qemu-block] [PATCH RFC 09/16] mirror: Do initial aio context move of target via BB interface, Fam Zheng, 2017/03/20
- [Qemu-block] [PATCH RFC 10/16] virtio-scsi: Request BLK_PERM_AIO_CONTEXT_CHANGE for dataplane, Fam Zheng, 2017/03/20
- [Qemu-block] [PATCH RFC 11/16] virtio-blk: Request BLK_PERM_AIO_CONTEXT_CHANGE for dataplane, Fam Zheng, 2017/03/20
- [Qemu-block] [PATCH RFC 12/16] blk: fix aio context loss on media change, Fam Zheng, 2017/03/20
- [Qemu-block] [PATCH RFC 13/16] nbd: Allow BLK_PERM_AIO_CONTEXT_CHANGE on BB, Fam Zheng, 2017/03/20
- [Qemu-block] [PATCH RFC 14/16] block: Add perm assertion on blk_set_aio_context, Fam Zheng, 2017/03/20
- [Qemu-block] [PATCH RFC 15/16] mirror: Lazily request aio context change permission on target, Fam Zheng, 2017/03/20