Re: [patch 2/5] mm, oom: introduce helper function to process threads during scan

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 06/30/2012 05:06 AM, 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.


Looks good to me.
You can add  Reviewed-by: Sha Zhengju <handai.szj@xxxxxxxxxx> :-)


Thanks,
Sha

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]