summary refs log tree commit diff stats
path: root/migration/qemu-file-unix.c
diff options
context:
space:
mode:
authorJohn Snow <jsnow@redhat.com>2016-01-26 18:54:58 -0500
committerKevin Wolf <kwolf@redhat.com>2016-05-25 19:04:21 +0200
commit12b3e52e4875ca018e033c66f1825437a005c239 (patch)
tree5b93f6fc31ed3bbf415a00e6eebbb5d1fc4411cb /migration/qemu-file-unix.c
parent91ab68837933232bcef99da7c968e6d41900419b (diff)
downloadfocaccia-qemu-12b3e52e4875ca018e033c66f1825437a005c239.tar.gz
focaccia-qemu-12b3e52e4875ca018e033c66f1825437a005c239.zip
backup: Pack Notifier within BackupBlockJob
Instead of relying on peeking at bs->job, we want to explicitly get
a reference to the job that was involved in this notifier callback.

Pack the Notifier inside of the BackupBlockJob so we can use
container_of to get a reference back to the BackupBlockJob object.

This cuts out one more case where we rely unnecessarily on bs->job.

Suggested-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: John Snow <jsnow@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'migration/qemu-file-unix.c')
0 files changed, 0 insertions, 0 deletions