block: Block all nodes involved in the block-commit operation
commit3e4c5122cbb881cd271314ef0782c4b6c57ab03d
authorAlberto Garcia <berto@igalia.com>
Fri, 28 Oct 2016 07:08:08 +0000 (28 10:08 +0300)
committerKevin Wolf <kwolf@redhat.com>
Mon, 31 Oct 2016 15:52:38 +0000 (31 16:52 +0100)
tree588c2798ffef955a7cc80434cbf8db27f1eef177
parent058223a6e3b73cdf7f56b8d0a55032f99c5f11ac
block: Block all nodes involved in the block-commit operation

After a successful block-commit operation all nodes between top and
base are removed from the backing chain, and top's overlay needs to
be updated to point to base. Because of that we should prevent other
block jobs from messing with them.

This patch blocks all operations in these nodes in commit_start().

Signed-off-by: Alberto Garcia <berto@igalia.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/commit.c