summaryrefslogtreecommitdiffstats
path: root/include/linux/oom.h
diff options
context:
space:
mode:
authorDavid Rientjes <rientjes@google.com>2012-07-31 16:43:40 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2012-07-31 18:42:44 -0700
commit462607ecc519b197f7b5cc6b024a1c26fa6fc0ac (patch)
tree3ecf52a4c1052a4af7d1ea7f10ef193938a9d046 /include/linux/oom.h
parent62ce1c706f817cb9defef3ac2dfdd815149f2968 (diff)
downloadlinux-stable-462607ecc519b197f7b5cc6b024a1c26fa6fc0ac.tar.gz
linux-stable-462607ecc519b197f7b5cc6b024a1c26fa6fc0ac.tar.bz2
linux-stable-462607ecc519b197f7b5cc6b024a1c26fa6fc0ac.zip
mm, oom: introduce helper function to process threads during scan
This patch introduces a helper function to process each thread during the iteration over the tasklist. A new return type, enum oom_scan_t, is defined to determine the future behavior of the iteration: - OOM_SCAN_OK: continue scanning the thread and find its badness, - OOM_SCAN_CONTINUE: do not consider this thread for oom kill, it's ineligible, - OOM_SCAN_ABORT: abort the iteration and return, or - OOM_SCAN_SELECT: always select this thread with the highest badness possible. There is no functional change with this patch. This new helper function will be used in the next patch in the memory controller. Reviewed-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Acked-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> Reviewed-by: Michal Hocko <mhocko@suse.cz> Signed-off-by: David Rientjes <rientjes@google.com> Cc: Oleg Nesterov <oleg@redhat.com> Reviewed-by: Sha Zhengju <handai.szj@taobao.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/oom.h')
0 files changed, 0 insertions, 0 deletions