]> xenbits.xensource.com Git - libvirt.git/commit
Introduce a virLXCDriverConfigPtr object
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 16 Jul 2013 15:45:05 +0000 (17:45 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 18 Jul 2013 12:16:53 +0000 (14:16 +0200)
commit7fca37554c2059f13a3de32bcc29c3c1e404fbc6
tree1c018bae5971c648925c562b2533c743c277e8b0
parent7e94a1a4ea6581ea876c61df73173a743972a00e
Introduce a virLXCDriverConfigPtr object

Currently the virLXCDriverPtr struct contains an wide variety
of data with varying access needs. Move all the static config
data into a dedicated virLXCDriverConfigPtr object. The only
locking requirement is to hold the driver lock, while obtaining
an instance of virLXCDriverConfigPtr. Once a reference is held
on the config object, it can be used completely lockless since
it is immutable.

NB, not all APIs correctly hold the driver lock while getting
a reference to the config object in this patch. This is safe
for now since the config is never updated on the fly. Later
patches will address this fully.
src/lxc/lxc_conf.c
src/lxc/lxc_conf.h
src/lxc/lxc_driver.c
src/lxc/lxc_process.c