summaryrefslogtreecommitdiffstats
path: root/include/exec/ram_addr.h
diff options
context:
space:
mode:
authorFam Zheng2015-11-06 00:13:11 +0100
committerKevin Wolf2015-11-12 16:22:43 +0100
commit18930ba3d17866fff6df52ae6d2e54ce5c5ca04b (patch)
treed2105745115882ec2d58cbb2c8c58c3011393cb6 /include/exec/ram_addr.h
parentbackup: Extract dirty bitmap handling as a separate function (diff)
downloadqemu-18930ba3d17866fff6df52ae6d2e54ce5c5ca04b.tar.gz
qemu-18930ba3d17866fff6df52ae6d2e54ce5c5ca04b.tar.xz
qemu-18930ba3d17866fff6df52ae6d2e54ce5c5ca04b.zip
blockjob: Introduce reference count and fix reference to job->bs
Add reference count to block job, meanwhile move the ownership of the reference to job->bs from the caller (which is released in two completion callbacks) to the block job itself. It is necessary for block_job_complete_sync to work, because block job shouldn't live longer than its bs, as asserted in bdrv_delete. Now block_job_complete_sync can be simplified. Signed-off-by: Fam Zheng <famz@redhat.com> Signed-off-by: John Snow <jsnow@redhat.com> Message-id: 1446765200-3054-6-git-send-email-jsnow@redhat.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include/exec/ram_addr.h')
0 files changed, 0 insertions, 0 deletions