diff options
author | Li Zefan <lizf@cn.fujitsu.com> | 2011-03-23 16:42:47 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-03-23 19:46:35 -0700 |
commit | ee24d3797780eee6ffe581a7b78d27896f9b494a (patch) | |
tree | 8034dac124ab8f0a29bc6f238c030915b2e08398 /kernel/freezer.c | |
parent | c8163ca8afcac0fc54593fc60d1e1110edbd0eb2 (diff) | |
download | op-kernel-dev-ee24d3797780eee6ffe581a7b78d27896f9b494a.zip op-kernel-dev-ee24d3797780eee6ffe581a7b78d27896f9b494a.tar.gz |
cpuset: fix unchecked calls to NODEMASK_ALLOC()
Those functions that use NODEMASK_ALLOC() can't propagate errno
to users, but will fail silently.
Fix it by using a static nodemask_t variable for each function, and
those variables are protected by cgroup_mutex;
[akpm@linux-foundation.org: fix comment spelling, strengthen cgroup_lock comment]
Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Cc: Paul Menage <menage@google.com>
Acked-by: David Rientjes <rientjes@google.com>
Cc: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/freezer.c')
0 files changed, 0 insertions, 0 deletions