forked from luck/tmp_suning_uos_patched
cpuset: lock vs unlock typo
This will deadlock instead of unlocking. Fixes: f73eae8d8384 ('cpuset: simplify cpuset_node_allowed API') Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Acked-by: Vladimir Davydov <vdavydov@parallels.com> Signed-off-by: Tejun Heo <tj@kernel.org>
This commit is contained in:
parent
344736f29b
commit
cea74465e2
|
@ -1992,7 +1992,7 @@ static int cpuset_css_online(struct cgroup_subsys_state *css)
|
|||
spin_lock_irq(&callback_lock);
|
||||
cs->mems_allowed = parent->mems_allowed;
|
||||
cpumask_copy(cs->cpus_allowed, parent->cpus_allowed);
|
||||
spin_lock_irq(&callback_lock);
|
||||
spin_unlock_irq(&callback_lock);
|
||||
out_unlock:
|
||||
mutex_unlock(&cpuset_mutex);
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue
Block a user