On Mon, Jun 25, 2012 at 11:22 PM, Kamezawa Hiroyuki <kamezawa.hiroyu@xxxxxxxxxxxxxx> wrote: > (2012/06/26 10:47), David Rientjes wrote: >> >> 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. >> >> Signed-off-by: David Rientjes <rientjes@xxxxxxxxxx> > > > I like this. > > Reviewed-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@xxxxxxxxxxxxxx> Acked-by: KOSAKI Motohiro <kosaki.motohiro@xxxxxxxxxxxxxx> -- To unsubscribe from this list: send the line "unsubscribe cgroups" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html