From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933019Ab0CaJUE (ORCPT ); Wed, 31 Mar 2010 05:20:04 -0400 Received: from mx1.redhat.com ([209.132.183.28]:9855 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932976Ab0CaJUA (ORCPT ); Wed, 31 Mar 2010 05:20:00 -0400 Date: Wed, 31 Mar 2010 11:17:40 +0200 From: Oleg Nesterov 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 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: User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.