block: never cancel a streaming job without running stream_complete()
commit6578629e08db7081e1890ba019170d452e09430b
authorAlberto Garcia <berto@igalia.com>
Mon, 21 Mar 2016 13:47:25 +0000 (21 15:47 +0200)
committerJeff Cody <jcody@redhat.com>
Mon, 28 Mar 2016 17:56:44 +0000 (28 13:56 -0400)
tree15834138f165fe2af76c83d8392753a79533dc62
parentb68a80139e37e806f004237e55311ebc42151434
block: never cancel a streaming job without running stream_complete()

We need to call stream_complete() in order to do all the necessary
clean-ups, even if there's an early failure. At the moment it's only
useful to make sure that s->backing_file_str is not leaked, but it
will become more important if we introduce support for streaming to
any intermediate node.

Signed-off-by: Alberto Garcia <berto@igalia.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: 2abedf2debc65c250560237f31a8e6756883c8fc.1458566441.git.berto@igalia.com
Signed-off-by: Jeff Cody <jcody@redhat.com>
block/stream.c