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

2015-03-02 Thread Fam Zheng
On Mon, 03/02 10:18, Max Reitz wrote: > On 2015-02-27 at 21:55, Fam Zheng wrote: > >On Fri, 02/27 11:43, Max Reitz wrote: > >> static void virtio_scsi_hotplug(HotplugHandler *hotplug_dev, DeviceState > >> *dev, > >> Error **errp) > >> { > >>@@ -763,12 +794,26 @@

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

2015-03-02 Thread Max Reitz
On 2015-02-27 at 21:55, Fam Zheng wrote: On Fri, 02/27 11:43, Max Reitz wrote: static void virtio_scsi_hotplug(HotplugHandler *hotplug_dev, DeviceState *dev, Error **errp) { @@ -763,12 +794,26 @@ static void virtio_scsi_hotplug(HotplugHandler *hotplug_dev,

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

2015-02-27 Thread Fam Zheng
On Fri, 02/27 11:43, Max Reitz wrote: > static void virtio_scsi_hotplug(HotplugHandler *hotplug_dev, DeviceState > *dev, > Error **errp) > { > @@ -763,12 +794,26 @@ static void virtio_scsi_hotplug(HotplugHandler > *hotplug_dev, DeviceState *dev, > SCSIDevic

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

2015-02-27 Thread Max Reitz
On 2015-02-27 at 11:43, 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 BDS

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

2015-02-27 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