diff options
| author | David Rientjes <[email protected]> | 2012-01-10 15:07:38 -0800 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2012-01-10 16:30:43 -0800 |
| commit | f6d7e0cb3ecc248e98fa11d83253f6174bd7e085 (patch) | |
| tree | 0925b5b584c8ed6718a54e6e56202686fb5b9468 /tools/perf/scripts/python/check-perf-trace.py | |
| parent | ad8a1b558e6c76fb53901956d3c8f29b82a4ccfa (diff) | |
mm, debug: test for online nid when allocating on single node
Calling alloc_pages_exact_node() means the allocation only passes the
zonelist of a single node into the page allocator. If that node isn't
online, it's zonelist may never have been initialized causing a strange
oops that may not immediately be clear.
I recently debugged an issue where node 0 wasn't online and an allocator
was passing 0 to alloc_pages_exact_node() and it resulted in a NULL
pointer on zonelist->_zoneref. If CONFIG_DEBUG_VM is enabled, though, it
would be nice to catch this a bit earlier.
Signed-off-by: David Rientjes <[email protected]>
Acked-by: Mel Gorman <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions