Skip to content

Commit

Permalink
lxccontainer: remove locks from get_cgroup_item()
Browse files Browse the repository at this point in the history
The on-disk config file is not altered and the in-memory config isn't
altered so no need for locking.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
  • Loading branch information
Christian Brauner committed Sep 30, 2018
1 parent 2cac430 commit c55c6a1
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/lxc/lxccontainer.c
Expand Up @@ -3273,14 +3273,9 @@ static int do_lxcapi_get_cgroup_item(struct lxc_container *c, const char *subsys
if (!cgroup_ops)
return -1;

if (container_disk_lock(c))
return -1;

ret = cgroup_ops->get(cgroup_ops, subsys, retv, inlen, c->name,
c->config_path);

container_disk_unlock(c);

cgroup_exit(cgroup_ops);

return ret;
Expand Down

0 comments on commit c55c6a1

Please sign in to comment.