From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756248Ab0F3OYj (ORCPT ); Wed, 30 Jun 2010 10:24:39 -0400 Received: from mail-pw0-f46.google.com ([209.85.160.46]:48517 "EHLO mail-pw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754016Ab0F3OYh (ORCPT ); Wed, 30 Jun 2010 10:24:37 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=OQ7HSAnBUNASN38Bx0cdgUqlPYsH2jRaXwxKnxHcmLTBITAlNEfb2BaQpHdNs7Xrwt olKrOwRQg/sBuhpTSIo9h1CT424n4wJMtil7KETCtH0+KTcMQny4kCI4xZ5h9uic3/1y L2hQ/SeRCcs5ThPcb8+rl6I9QBD2ftO5ABtfk= Date: Wed, 30 Jun 2010 22:55:03 +0900 From: Minchan Kim To: KOSAKI Motohiro Cc: LKML , linux-mm , Andrew Morton , David Rientjes , KAMEZAWA Hiroyuki Subject: Re: [PATCH 02/11] oom: oom_kill_process() doesn't select kthread child Message-ID: <20100630135503.GA15644@barrios-desktop> References: <20100630172430.AA42.A69D9226@jp.fujitsu.com> <20100630182715.AA4B.A69D9226@jp.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100630182715.AA4B.A69D9226@jp.fujitsu.com> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 30, 2010 at 06:27:52PM +0900, 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(). Is it possible child is kthread even though parent isn't kthread? -- Kind regards, Minchan Kim From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail143.messagelabs.com (mail143.messagelabs.com [216.82.254.35]) by kanga.kvack.org (Postfix) with SMTP id 368D86006F7 for ; Wed, 30 Jun 2010 09:55:13 -0400 (EDT) Received: by pzk33 with SMTP id 33so25998pzk.14 for ; Wed, 30 Jun 2010 06:55:11 -0700 (PDT) Date: Wed, 30 Jun 2010 22:55:03 +0900 From: Minchan Kim Subject: Re: [PATCH 02/11] oom: oom_kill_process() doesn't select kthread child Message-ID: <20100630135503.GA15644@barrios-desktop> References: <20100630172430.AA42.A69D9226@jp.fujitsu.com> <20100630182715.AA4B.A69D9226@jp.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100630182715.AA4B.A69D9226@jp.fujitsu.com> Sender: owner-linux-mm@kvack.org To: KOSAKI Motohiro Cc: LKML , linux-mm , Andrew Morton , David Rientjes , KAMEZAWA Hiroyuki List-ID: On Wed, Jun 30, 2010 at 06:27:52PM +0900, 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(). Is it possible child is kthread even though parent isn't kthread? -- Kind regards, Minchan Kim -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org