Commit cea74465 authored by Dan Carpenter's avatar Dan Carpenter Committed by Tejun Heo

cpuset: lock vs unlock typo

This will deadlock instead of unlocking.

Fixes: f73eae8d8384 ('cpuset: simplify cpuset_node_allowed API')
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Acked-by: default avatarVladimir Davydov <vdavydov@parallels.com>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent 344736f2
...@@ -1992,7 +1992,7 @@ static int cpuset_css_online(struct cgroup_subsys_state *css) ...@@ -1992,7 +1992,7 @@ static int cpuset_css_online(struct cgroup_subsys_state *css)
spin_lock_irq(&callback_lock); spin_lock_irq(&callback_lock);
cs->mems_allowed = parent->mems_allowed; cs->mems_allowed = parent->mems_allowed;
cpumask_copy(cs->cpus_allowed, parent->cpus_allowed); cpumask_copy(cs->cpus_allowed, parent->cpus_allowed);
spin_lock_irq(&callback_lock); spin_unlock_irq(&callback_lock);
out_unlock: out_unlock:
mutex_unlock(&cpuset_mutex); mutex_unlock(&cpuset_mutex);
return 0; return 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