On Tue, Mar 10, 2015 at 17:45:17 +0100, Michal Privoznik wrote: > In order to drop network driver lock, lets annotate which > structure items are immutable, which have self-locking > APIs and so on. > > Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx> > --- > src/network/bridge_driver_platform.h | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/src/network/bridge_driver_platform.h b/src/network/bridge_driver_platform.h > index b7492e6..d9cf6a8 100644 > --- a/src/network/bridge_driver_platform.h > +++ b/src/network/bridge_driver_platform.h > @@ -34,8 +34,10 @@ > struct _virNetworkDriverState { > virMutex lock; > > + /* Immutable pointer, self-locking APIs */ > virNetworkObjListPtr networks; > > + /* Immutable pointer, Immutable objects */ > char *networkConfigDir; > char *networkAutostartDir; > char *stateDir; > @@ -44,6 +46,7 @@ struct _virNetworkDriverState { > char *radvdStateDir; > dnsmasqCapsPtr dnsmasqCaps; Unfortunately dnsmasqCaps is not immutable. In networkStartDhcpDaemon it's re-allocated or updated when the network is started. > > + /* Immutable pointer, self-locking APIs */ > virObjectEventStatePtr networkEventState; > }; ACK if you notify that @dnsmasqCaps is not immutable. Peter
Attachment:
signature.asc
Description: Digital signature
-- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list