From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail144.messagelabs.com (mail144.messagelabs.com [216.82.254.51]) by kanga.kvack.org (Postfix) with SMTP id 04BD56B01EF for ; Wed, 31 Mar 2010 05:19:54 -0400 (EDT) Date: Wed, 31 Mar 2010 11:17:40 +0200 From: Oleg Nesterov Subject: Re: [PATCH -mm] proc: don't take ->siglock for /proc/pid/oom_adj Message-ID: <20100331091740.GB11438@redhat.com> References: <20100326150805.f5853d1c.akpm@linux-foundation.org> <20100326223356.GA20833@redhat.com> <20100328145528.GA14622@desktop> <20100328162821.GA16765@redhat.com> <20100329112111.GA16971@redhat.com> <20100330163909.GA16884@redhat.com> <20100330174337.GA21663@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: owner-linux-mm@kvack.org To: David Rientjes Cc: Andrew Morton , anfei , KOSAKI Motohiro , nishimura@mxp.nes.nec.co.jp, KAMEZAWA Hiroyuki , Mel Gorman , linux-mm@kvack.org, linux-kernel@vger.kernel.org List-ID: On 03/30, David Rientjes wrote: > > On Tue, 30 Mar 2010, Oleg Nesterov wrote: > > > ->siglock is no longer needed to access task->signal, change > > oom_adjust_read() and oom_adjust_write() to read/write oom_adj > > lockless. > > > > Yes, this means that "echo 2 >oom_adj" and "echo 1 >oom_adj" > > can race and the second write can win, but I hope this is OK. > > > > Ok, but could you base this on -mm at > http://userweb.kernel.org/~akpm/mmotm/ since an additional tunable has > been added (oom_score_adj), which does the same thing? Ah, OK, will do. Thanks David. Oleg. -- 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