Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mm: copy over oom_adj value at fork time
Fix a post-2.6.31 regression which was introduced by 2ff05b2 ("oom: move oom_adj value from task_struct to mm_struct"). After moving the oom_adj value from the task struct to the mm_struct, the oom_adj value was no longer properly inherited by child processes. Copying over the oom_adj value at fork time fixes that bug. [[email protected]: test for current->mm before dereferencing it] Signed-off-by: Rik van Riel <[email protected]> Reported-by: Paul Menage <[email protected]> Cc: KOSAKI Motohiro <[email protected]> Acked-by: David Rientjes <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
- Loading branch information