On 17.05.21 08:44, Vladimir Sementsov-Ogievskiy wrote:
Refactor the function to replace child at last. Thus we don't need to
revert it and code is simplified.

block-copy state initilization being done before replacing the child

*initialization

doesn't need any drained section.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsement...@virtuozzo.com>
---
  block/copy-before-write.c | 33 +++++++++++----------------------
  1 file changed, 11 insertions(+), 22 deletions(-)

Reviewed-by: Max Reitz <mre...@redhat.com>


Reply via email to