]> git.proxmox.com Git - mirror_qemu.git/commit
commit: Use real permissions in commit block job
authorKevin Wolf <kwolf@redhat.com>
Mon, 16 Jan 2017 15:22:34 +0000 (16:22 +0100)
committerKevin Wolf <kwolf@redhat.com>
Tue, 28 Feb 2017 19:40:37 +0000 (20:40 +0100)
commit8dfba2797761d8a43744e4e6571c8175e448a478
treeb29be71772cfeb9e38988904b53a52afc013f574
parent76d554e20bd0a965ac22d6155a129be12fac2667
commit: Use real permissions in commit block job

This is probably one of the most interesting conversions to the new
op blocker system because a commit block job intentionally leaves some
intermediate block nodes in the backing chain that aren't valid on their
own any more; only the whole chain together results in a valid view.

In order to provide the 'consistent read' permission to the parents of
the 'top' node of the commit job, a new filter block driver is inserted
above 'top' which doesn't require 'consistent read' on its backing
chain. Subsequently, the commit job can block 'consistent read' on all
intermediate nodes without causing a conflict.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Acked-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
block/commit.c