Re: [Qemu-devel] [PATCH v2 4/5] block/backup: Pack Notifier within BackupBlockJob

2016-01-26 Thread Fam Zheng
On Tue, 01/26 18:54, John Snow wrote: > 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 BackupBlo

[Qemu-devel] [PATCH v2 4/5] block/backup: Pack Notifier within BackupBlockJob

2016-01-26 Thread John Snow
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