diff options
| author | Kevin Wolf | 2018-04-13 18:50:05 +0200 |
|---|---|---|
| committer | Kevin Wolf | 2018-05-23 14:30:49 +0200 |
| commit | 80fa2c756b3241f24015a7503a01f7999d4a942d (patch) | |
| tree | db1b410af62162feb7d8b69651a9d671cf4cc030 /linux-headers/linux | |
| parent | job: Move state transitions to Job (diff) | |
| download | qemu-80fa2c756b3241f24015a7503a01f7999d4a942d.tar.gz qemu-80fa2c756b3241f24015a7503a01f7999d4a942d.tar.xz qemu-80fa2c756b3241f24015a7503a01f7999d4a942d.zip | |
job: Add reference counting
This moves reference counting from BlockJob to Job.
In order to keep calling the BlockJob cleanup code when the job is
deleted via job_unref(), introduce a new JobDriver.free callback. Every
block job must use block_job_free() for this callback, this is asserted
in block_job_create().
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Diffstat (limited to 'linux-headers/linux')
0 files changed, 0 insertions, 0 deletions
