Re: [Qemu-devel] [PATCH v3 05/11] block: Move BDS close notifiers into BB

2015-02-26 Thread Max Reitz
On 2015-02-25 at 21:19, Fam Zheng wrote: On Wed, 02/25 09:12, Max Reitz wrote: Because I need a Notifier pointer to give to blk_add_{insert,remove}_bs_notifier(), and most importantly because the only "opaque" object the callbacks will receive is that Notifier pointer (which in this case is actu

Re: [Qemu-devel] [PATCH v3 05/11] block: Move BDS close notifiers into BB

2015-02-25 Thread Fam Zheng
On Wed, 02/25 09:12, Max Reitz wrote: > Because I need a Notifier pointer to give to > blk_add_{insert,remove}_bs_notifier(), and most importantly because the only > "opaque" object the callbacks will receive is that Notifier pointer (which > in this case is actually a DataPlaneBlkChangeNotifier po

Re: [Qemu-devel] [PATCH v3 05/11] block: Move BDS close notifiers into BB

2015-02-25 Thread Max Reitz
On 2015-02-25 at 02:52, Fam Zheng wrote: On Tue, 02/24 10:35, Max Reitz wrote: The only remaining user of the BDS close notifiers is NBD which uses them to determine when a BDS tree is being ejected. This patch removes the BDS-level close notifiers and adds a notifier list to the BlockBackend st

Re: [Qemu-devel] [PATCH v3 05/11] block: Move BDS close notifiers into BB

2015-02-24 Thread Fam Zheng
On Tue, 02/24 10:35, Max Reitz wrote: > The only remaining user of the BDS close notifiers is NBD which uses > them to determine when a BDS tree is being ejected. This patch removes > the BDS-level close notifiers and adds a notifier list to the > BlockBackend structure that is invoked whenever a B

[Qemu-devel] [PATCH v3 05/11] block: Move BDS close notifiers into BB

2015-02-24 Thread Max Reitz
The only remaining user of the BDS close notifiers is NBD which uses them to determine when a BDS tree is being ejected. This patch removes the BDS-level close notifiers and adds a notifier list to the BlockBackend structure that is invoked whenever a BDS is removed. Symmetrically to that, another