- job_ref(job);
- job_finalize(job, errp);
-
- /*
- * Job's context might have changed via job_finalize (and job_txn_apply
- * automatically acquires the new one), so make sure we release the correct
- * one.
- */
- aio_context = job->aio_context;
- job_unref(job);
- aio_context_release(aio_context);