lxccontainer: remove locks from get_cgroup_item()

The on-disk config file is not altered and the in-memory config isn't altered so no need for locking. Signed-off-by: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
parent 2cac4304
...@@ -3273,14 +3273,9 @@ static int do_lxcapi_get_cgroup_item(struct lxc_container *c, const char *subsys ...@@ -3273,14 +3273,9 @@ static int do_lxcapi_get_cgroup_item(struct lxc_container *c, const char *subsys
if (!cgroup_ops) if (!cgroup_ops)
return -1; return -1;
if (container_disk_lock(c))
return -1;
ret = cgroup_ops->get(cgroup_ops, subsys, retv, inlen, c->name, ret = cgroup_ops->get(cgroup_ops, subsys, retv, inlen, c->name,
c->config_path); c->config_path);
container_disk_unlock(c);
cgroup_exit(cgroup_ops); cgroup_exit(cgroup_ops);
return ret; return ret;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment