diff options
author | Kevin Wolf <kwolf@redhat.com> | 2018-04-23 16:06:26 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2018-05-23 14:30:51 +0200 |
commit | 7eaa8fb57da96301f4a8ce176ad503f80efc7cc0 (patch) | |
tree | 2450798efd3aa3104933bceeb7d44dfe1d8edf51 /blockdev.c | |
parent | 62c9e4162a7bc26a1389e50d17d3b2637028bbc3 (diff) | |
download | qemu-7eaa8fb57da96301f4a8ce176ad503f80efc7cc0.zip qemu-7eaa8fb57da96301f4a8ce176ad503f80efc7cc0.tar.gz qemu-7eaa8fb57da96301f4a8ce176ad503f80efc7cc0.tar.bz2 |
job: Move transactions to Job
This moves the logic that implements job transactions from BlockJob to
Job.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'blockdev.c')
-rw-r--r-- | blockdev.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -2255,7 +2255,7 @@ void qmp_transaction(TransactionActionList *dev_list, */ props = get_transaction_properties(props); if (props->completion_mode != ACTION_COMPLETION_MODE_INDIVIDUAL) { - block_job_txn = block_job_txn_new(); + block_job_txn = job_txn_new(); } /* drain all i/o before any operations */ @@ -2314,7 +2314,7 @@ exit: if (!has_props) { qapi_free_TransactionProperties(props); } - block_job_txn_unref(block_job_txn); + job_txn_unref(block_job_txn); } void qmp_eject(bool has_device, const char *device, @@ -3908,7 +3908,7 @@ void qmp_block_job_finalize(const char *id, Error **errp) } trace_qmp_block_job_finalize(job); - block_job_finalize(job, errp); + job_finalize(&job->job, errp); aio_context_release(aio_context); } |