Messages in this thread | | | From | KOSAKI Motohiro <> | Subject | Re: + oom-check-pf_kthread-instead-of-mm-to-skip-kthreads.patch added to -mm tree | Date | Thu, 17 Jun 2010 10:51:38 +0900 (JST) |
| |
> > The patch titled > oom: check PF_KTHREAD instead of !mm to skip kthreads > has been added to the -mm tree. Its filename is > oom-check-pf_kthread-instead-of-mm-to-skip-kthreads.patch > > Before you just go and hit "reply", please: > a) Consider who else should be cc'ed > b) Prefer to cc a suitable mailing list as well > c) Ideally: find the original patch on the mailing list and do a > reply-to-all to that, adding suitable additional cc's > > *** Remember to use Documentation/SubmitChecklist when testing your code *** > > See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find > out what to do about this > > The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ > > ------------------------------------------------------ > Subject: oom: check PF_KTHREAD instead of !mm to skip kthreads > From: Oleg Nesterov <oleg@redhat.com> > > select_bad_process() thinks a kernel thread can't have ->mm != NULL, this > is not true due to use_mm(). > > Change the code to check PF_KTHREAD. > > Reviewed-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> > Signed-off-by: Oleg Nesterov <oleg@redhat.com> > Signed-off-by: David Rientjes <rientjes@google.com> > Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> > Cc: Balbir Singh <balbir@in.ibm.com> > Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Acked-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
| |