diff options
| author | Richard Henderson | 2021-12-29 23:33:22 +0100 |
|---|---|---|
| committer | Richard Henderson | 2021-12-29 23:33:23 +0100 |
| commit | d5a9f352896fe43183ef01072b374e89a3488315 (patch) | |
| tree | 85b44c75f58b8bf7e4e2057e0ec17948c0248e6f /include | |
| parent | Merge tag 'pull-pa-20211223' of https://gitlab.com/rth7680/qemu into staging (diff) | |
| parent | blockjob: drop BlockJob.blk field (diff) | |
| download | qemu-d5a9f352896fe43183ef01072b374e89a3488315.tar.gz qemu-d5a9f352896fe43183ef01072b374e89a3488315.tar.xz qemu-d5a9f352896fe43183ef01072b374e89a3488315.zip | |
Merge tag 'pull-jobs-2021-12-29' of https://src.openvz.org/scm/~vsementsov/qemu into staging
Jobs patches:
- small fix of job_create()
- refactoring: drop BlockJob.blk field
# gpg: Signature made Wed 29 Dec 2021 11:11:25 AM PST
# gpg: using RSA key 8B9C26CDB2FD147C880E86A1561F24C1F19F79FB
# gpg: Good signature from "Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>" [unknown]
# gpg: WARNING: This key is not certified with a trusted signature!
# gpg: There is no indication that the signature belongs to the owner.
# Primary key fingerprint: 8B9C 26CD B2FD 147C 880E 86A1 561F 24C1 F19F 79FB
* tag 'pull-jobs-2021-12-29' of https://src.openvz.org/scm/~vsementsov/qemu:
blockjob: drop BlockJob.blk field
test-bdrv-drain: don't use BlockJob.blk
block/stream: add own blk
test-blockjob-txn: don't abuse job->blk
blockjob: implement and use block_job_get_aio_context
job.c: add missing notifier initialization
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/block/blockjob.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/include/block/blockjob.h b/include/block/blockjob.h index d200f33c10..87fbb3985f 100644 --- a/include/block/blockjob.h +++ b/include/block/blockjob.h @@ -43,9 +43,6 @@ typedef struct BlockJob { /** Data belonging to the generic Job infrastructure */ Job job; - /** The block device on which the job is operating. */ - BlockBackend *blk; - /** Status that is published by the query-block-jobs QMP API */ BlockDeviceIoStatus iostatus; @@ -173,4 +170,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 |
