Re: [PATCH 2/9] oom: oom_kill_process() doesn't select kthreadchild

From: David Rientjes
Date: Mon Jun 21 2010 - 16:14:23 EST


On Thu, 17 Jun 2010, KOSAKI Motohiro wrote:

>
> Now, select_bad_process() have PF_KTHREAD check, but oom_kill_process
> doesn't. It mean oom_kill_process() may choose wrong task, especially,
> when the child are using use_mm().
>

This type of check should be moved to badness(), it will prevent these
types of tasks from being selected both in select_bad_process() and
oom_kill_process() if the score it returns is 0.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/