[libvirt] [PATCH 6/9] Stop accessing driver->caps directly in LXC driver

Daniel P. Berrange berrange at redhat.com
Thu Jul 18 10:24:05 UTC 2013


On Wed, Jul 17, 2013 at 03:04:23PM +0200, Michal Privoznik wrote:
> The 'driver->caps' pointer can be changed on the fly. Accessing
> it currently requires the global driver lock. Isolate this
> access in a single helper, so a future patch can relax the
> locking constraints.
> ---
>  src/lxc/lxc_conf.c       |  29 +++++++++++-
>  src/lxc/lxc_conf.h       |   7 ++-
>  src/lxc/lxc_controller.c |   2 +-
>  src/lxc/lxc_driver.c     | 121 +++++++++++++++++++++++++++++++++++++----------
>  src/lxc/lxc_process.c    |   9 +++-
>  5 files changed, 136 insertions(+), 32 deletions(-)

ACK

Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|




More information about the libvir-list mailing list