mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 10:13:56 -06:00
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>
This commit is contained in:
parent
252f40913a
commit
df9a316505
4 changed files with 16 additions and 4 deletions
|
@ -547,3 +547,8 @@ BlockErrorAction block_job_error_action(BlockJob *job, BlockdevOnError on_err,
|
|||
}
|
||||
return action;
|
||||
}
|
||||
|
||||
AioContext *block_job_get_aio_context(BlockJob *job)
|
||||
{
|
||||
return job->job.aio_context;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue