lxccontainer: remove locks from set_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 db894c06
......@@ -3249,13 +3249,8 @@ static bool do_lxcapi_set_cgroup_item(struct lxc_container *c, const char *subsy
if (!cgroup_ops)
return false;
if (container_disk_lock(c))
return false;
ret = cgroup_ops->set(cgroup_ops, subsys, value, c->name, c->config_path);
container_disk_unlock(c);
cgroup_exit(cgroup_ops);
return ret == 0;
......
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