aboutsummaryrefslogtreecommitdiff
path: root/blockjob.c
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@redhat.com>2014-10-21 12:04:00 +0100
committerStefan Hajnoczi <stefanha@redhat.com>2014-11-03 11:41:49 +0000
commitb112a65c52aa45a23b83b1e0d56db3b7cc44597e (patch)
treec6bcff47d452e6d130b63f288e9835b40de57f9a /blockjob.c
parent9e85cd5ce0d3fc99d910428c9fd9d267764d341b (diff)
block: declare blockjobs and dataplane friends!
Now that blockjobs use AioContext they are safe for use with dataplane. Unblock them! Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com> Message-id: 1413889440-32577-12-git-send-email-stefanha@redhat.com
Diffstat (limited to 'blockjob.c')
-rw-r--r--blockjob.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/blockjob.c b/blockjob.c
index cd4b573adb..ba2255d91f 100644
--- a/blockjob.c
+++ b/blockjob.c
@@ -50,6 +50,7 @@ void *block_job_create(const BlockJobDriver *driver, BlockDriverState *bs,
error_setg(&job->blocker, "block device is in use by block job: %s",
BlockJobType_lookup[driver->job_type]);
bdrv_op_block_all(bs, job->blocker);
+ bdrv_op_unblock(bs, BLOCK_OP_TYPE_DATAPLANE, job->blocker);
job->driver = driver;
job->bs = bs;