[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 1/3] virtio-ccw: remove qdev_unparent in unplug
From: |
Andreas Färber |
Subject: |
Re: [Qemu-devel] [PATCH 1/3] virtio-ccw: remove qdev_unparent in unplug routing |
Date: |
Mon, 25 Feb 2013 09:38:41 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130215 Thunderbird/17.0.3 |
Am 25.02.2013 08:55, schrieb Paolo Bonzini:
>
>> Another thing is, that qdev_free looks now different, some days ago
>> it also did an unref. As far as I can see the object_unparent in
>> virtio-ccw was always the wrong thing to do.
>
> object_unparent is "almost" idempotent, i.e. idempotent as long as it does
> not cause the last reference to go away. So, doing an object_unparent
> before qdev_free was not wrong when qdev_free did an object_unref.
>
> I think qdev_free is better, unless we want to change all of them
> at the same time.
I did have a patch doing that but revoked it because I thought you said
you wanted to do it differently as part of your series...
If it stays it needs to be renamed device_* and probably not *_free
either since that depends on reference count.
Andreas
--
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
- [Qemu-devel] [PATCH 0/3] small virtio-ccw and css patches, Jens Freimann, 2013/02/22
- [Qemu-devel] [PATCH 1/3] virtio-ccw: remove qdev_unparent in unplug routing, Jens Freimann, 2013/02/22
- Re: [Qemu-devel] [PATCH 1/3] virtio-ccw: remove qdev_unparent in unplug routing, Andreas Färber, 2013/02/24
- Re: [Qemu-devel] [PATCH 1/3] virtio-ccw: remove qdev_unparent in unplug routing, Christian Borntraeger, 2013/02/24
- Re: [Qemu-devel] [PATCH 1/3] virtio-ccw: remove qdev_unparent in unplug routing, Paolo Bonzini, 2013/02/25
- Re: [Qemu-devel] [PATCH 1/3] virtio-ccw: remove qdev_unparent in unplug routing, Christian Borntraeger, 2013/02/25
- Re: [Qemu-devel] [PATCH 1/3] virtio-ccw: remove qdev_unparent in unplug routing, Paolo Bonzini, 2013/02/25
- Re: [Qemu-devel] [PATCH 1/3] virtio-ccw: remove qdev_unparent in unplug routing, Christian Borntraeger, 2013/02/25
- Re: [Qemu-devel] [PATCH 1/3] virtio-ccw: remove qdev_unparent in unplug routing,
Andreas Färber <=
[Qemu-devel] [PATCH 3/3] s390/virtio-ccw: remove redundant call to blockdev_mark_auto_del, Jens Freimann, 2013/02/22
[Qemu-devel] [PATCH 2/3] s390/css: Fix subchannel detection, Jens Freimann, 2013/02/22