From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 290D0C433E1 for ; Tue, 25 Aug 2020 19:12:30 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id F2EEC2074D for ; Tue, 25 Aug 2020 19:12:29 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F2EEC2074D Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 790886B0027; Tue, 25 Aug 2020 15:12:29 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 719CB6B0028; Tue, 25 Aug 2020 15:12:29 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5E17A8D0002; Tue, 25 Aug 2020 15:12:29 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0228.hostedemail.com [216.40.44.228]) by kanga.kvack.org (Postfix) with ESMTP id 448696B0027 for ; Tue, 25 Aug 2020 15:12:29 -0400 (EDT) Received: from smtpin12.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id F0DF9181AEF2A for ; Tue, 25 Aug 2020 19:12:28 +0000 (UTC) X-FDA: 77190037176.12.grass42_3708e9d2705e Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin12.hostedemail.com (Postfix) with ESMTP id B1A181800AEAA for ; Tue, 25 Aug 2020 19:12:28 +0000 (UTC) X-HE-Tag: grass42_3708e9d2705e X-Filterd-Recvd-Size: 2859 Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by imf08.hostedemail.com (Postfix) with ESMTP for ; Tue, 25 Aug 2020 19:12:28 +0000 (UTC) X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 89B9DB70C; Tue, 25 Aug 2020 19:12:57 +0000 (UTC) Date: Tue, 25 Aug 2020 21:12:25 +0200 From: Michal Hocko To: Suren Baghdasaryan Cc: "Eric W. Biederman" , Christian Brauner , mingo@kernel.org, Peter Zijlstra , Thomas Gleixner , esyr@redhat.com, christian@kellner.me, areber@redhat.com, Shakeel Butt , cyphar@cyphar.com, Oleg Nesterov , adobriyan@gmail.com, Andrew Morton , gladkov.alexey@gmail.com, Michel Lespinasse , daniel.m.jordan@oracle.com, avagin@gmail.com, bernd.edlinger@hotmail.de, John Johansen , laoar.shao@gmail.com, Tim Murray , Minchan Kim , kernel-team , LKML , linux-fsdevel@vger.kernel.org, stable , linux-mm Subject: Re: [PATCH v2 1/1] mm, oom_adj: don't loop through tasks in __set_oom_adj when not necessary Message-ID: <20200825191225.GK22869@dhcp22.suse.cz> References: <20200824153036.3201505-1-surenb@google.com> <87imd6n0qk.fsf@x220.int.ebiederm.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Rspamd-Queue-Id: B1A181800AEAA X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam02 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Tue 25-08-20 10:36:45, Suren Baghdasaryan wrote: > On Tue, Aug 25, 2020 at 9:38 AM Eric W. Biederman wrote: [...] > > > diff --git a/include/linux/oom.h b/include/linux/oom.h > > > index f022f581ac29..861f22bd4706 100644 > > > --- a/include/linux/oom.h > > > +++ b/include/linux/oom.h > > > @@ -55,6 +55,7 @@ struct oom_control { > > > }; > > > > > > extern struct mutex oom_lock; > > > +extern struct mutex oom_adj_lock; > > ^^^^^^^^^^^^^^ > > > > I understand moving this lock by why renaming it? > > To be consistent with the mutex name right above it. I'm ok keeping it > as before if this is too much additional churn. I guess Michal deals > with this code more than anyone else, so I'll wait for him to comment > on this one. I cannot say I would care deeply about naming. Consistency looks nice but if there is a preference to keep the lock then I will not object. -- Michal Hocko SUSE Labs