[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v2 3/3] xen-disk: use an IOThread per instance
> -----Original Message----- [snip] > > > > + object_unparent(OBJECT(blkdev->iothread)); > > > > > > Shouldn't this be object_unref? > > > > > > > I don't think so. I think this is required to undo what was done by calling > object_property_add_child() on the root object. > > Right, so if object_property_add_child is not actually required, then > you might be able to turn object_unparent into object_unref. > > Unfortunately I don't know enough about QOM to be able to tell which is > the right way of doing things, but looking at > hw/block/dataplane/virtio-blk.c, it would seem that only object_ref and > object_unref are required? > I guess I can give it a try. I was working on the assumption that all objects were required to have a parent, but maybe that's not true. Can someone more familiar with QOM comment? Cheers, Paul > > > Looking at other code such as object_new_with_propv() it looks like the > right thing to do is to call object_unref() after calling > object_property_add_child() to drop the implicit ref taken by object_new() > so I'd need to add the call in blk_alloc(). _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |