summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2014-10-27 16:27:02 +0300
committerTejun Heo <tj@kernel.org>2014-10-27 11:53:29 -0400
commitcea74465e27b1306a237087fca2f5f0befcf1daf (patch)
treee75d823cfbb0a6727b191cabfa1727a433c9773e /kernel
parent344736f29b359790facd0b7a521e367f1715c11c (diff)
downloadop-kernel-dev-cea74465e27b1306a237087fca2f5f0befcf1daf.zip
op-kernel-dev-cea74465e27b1306a237087fca2f5f0befcf1daf.tar.gz
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>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/cpuset.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/cpuset.c b/kernel/cpuset.c
index 38f7433..4eaa203 100644
--- a/kernel/cpuset.c
+++ b/kernel/cpuset.c
@@ -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;
OpenPOWER on IntegriCloud