aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>2021-05-06 17:13:53 +0300
committerVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>2021-12-28 15:18:23 +0100
commitdf9a31650505278e72c6b453f1679f66eac6e633 (patch)
tree990cb96314cda5eeac7f3a8b783d0ac3d8a4a4c8 /include
parent252f40913a87e1e89539a08b57e1740b3482906d (diff)
downloadqemu-df9a31650505278e72c6b453f1679f66eac6e633.zip
qemu-df9a31650505278e72c6b453f1679f66eac6e633.tar.gz
qemu-df9a31650505278e72c6b453f1679f66eac6e633.tar.bz2
blockjob: implement and use block_job_get_aio_context
We are going to drop BlockJob.blk. So let's retrieve block job context from underlying job instead of main node. Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Reviewed-by: Nikita Lapshin <nikita.lapshin@virtuozzo.com>
Diffstat (limited to 'include')
-rw-r--r--include/block/blockjob.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/block/blockjob.h b/include/block/blockjob.h
index d200f33..3b84805 100644
--- a/include/block/blockjob.h
+++ b/include/block/blockjob.h
@@ -173,4 +173,11 @@ bool block_job_is_internal(BlockJob *job);
*/
const BlockJobDriver *block_job_driver(BlockJob *job);
+/*
+ * block_job_get_aio_context:
+ *
+ * Returns aio context associated with a block job.
+ */
+AioContext *block_job_get_aio_context(BlockJob *job);
+
#endif