[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 4/5] block/backup: Add subclassed notifier
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [PATCH 4/5] block/backup: Add subclassed notifier |
Date: |
Tue, 12 Jan 2016 09:46:07 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 |
On 12/01/2016 01:36, 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.
>
> Extend the Notifier to include a job pointer, and include a reference
> to the job registering the callback. This cuts out a few more cases
> where we have to rely on bs->job.
>
> Signed-off-by: John Snow <address@hidden>
Why don't you just put the NotifierWithReturn inside the BackupBlockJob
struct, and use container_of to get from NWR to BackupBlockJob?
Paolo
- [Qemu-devel] [PATCH 0/5] block: reduce reliance on bs->job pointer, John Snow, 2016/01/11
- [Qemu-devel] [PATCH 4/5] block/backup: Add subclassed notifier, John Snow, 2016/01/11
- Re: [Qemu-devel] [PATCH 4/5] block/backup: Add subclassed notifier,
Paolo Bonzini <=
- Re: [Qemu-devel] [PATCH 4/5] block/backup: Add subclassed notifier, John Snow, 2016/01/12
- Re: [Qemu-devel] [PATCH 4/5] block/backup: Add subclassed notifier, Paolo Bonzini, 2016/01/12
- Re: [Qemu-devel] [PATCH 4/5] block/backup: Add subclassed notifier, John Snow, 2016/01/12
- Re: [Qemu-devel] [PATCH 4/5] block/backup: Add subclassed notifier, Kevin Wolf, 2016/01/18
- Re: [Qemu-devel] [PATCH 4/5] block/backup: Add subclassed notifier, John Snow, 2016/01/18
[Qemu-devel] [PATCH 2/5] block: Allow stream_start to return job references, John Snow, 2016/01/11
[Qemu-devel] [PATCH 1/5] block: Allow mirror_start to return job references, John Snow, 2016/01/11
[Qemu-devel] [PATCH 3/5] block: allow backup_start to return job references, John Snow, 2016/01/11
[Qemu-devel] [PATCH 5/5] blockjob: add Job parameter to BlockCompletionFunc, John Snow, 2016/01/11