diff options
author | Miao Xie <[email protected]> | 2010-03-23 13:35:34 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2010-03-24 16:31:21 -0700 |
commit | 5ab116c9349ef52d6fbd2e2917a53f13194b048e (patch) | |
tree | 636a6cf02d5ca47c6da5d4935b07ddf08666a09c /lib/debugobjects.c | |
parent | 5574169613b40b85d6f4c67208fa4846b897a0a1 (diff) |
cpuset: fix the problem that cpuset_mem_spread_node() returns an offline node
cpuset_mem_spread_node() returns an offline node, and causes an oops.
This patch fixes it by initializing task->mems_allowed to
node_states[N_HIGH_MEMORY], and updating task->mems_allowed when doing
memory hotplug.
Signed-off-by: Miao Xie <[email protected]>
Acked-by: David Rientjes <[email protected]>
Reported-by: Nick Piggin <[email protected]>
Tested-by: Nick Piggin <[email protected]>
Cc: Paul Menage <[email protected]>
Cc: Li Zefan <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions