blockjob: reorganize block_job_completed_txn_abort
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 8 May 2017 14:13:09 +0000 (16:13 +0200)
committerJeff Cody <jcody@redhat.com>
Wed, 24 May 2017 20:38:51 +0000 (16:38 -0400)
commit4fb588e95bacb770746cc794ef165fd71a4d27ea
treed03ffd6c17bbd1ac26181087efb9fdfe77b6e176
parent7e74a73499059263212048ad989facae5500d230
blockjob: reorganize block_job_completed_txn_abort

This splits the part that touches job states from the part that invokes
callbacks.  It will make the code simpler to understand once job states will
be protected by a different mutex than the AioContext lock.

Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-id: 20170508141310.8674-11-pbonzini@redhat.com
Signed-off-by: Jeff Cody <jcody@redhat.com>
blockjob.c