Received: by 10.213.65.68 with SMTP id h4csp804510imn; Fri, 6 Apr 2018 09:10:46 -0700 (PDT) X-Google-Smtp-Source: AIpwx48KRIOJZFxllJgpwJt9dh2W6beDu4TDuju5CFFV2DMC9jYayWIFht2K+VzUEisw/epn0OE7 X-Received: by 2002:a17:902:107:: with SMTP id 7-v6mr27784328plb.374.1523031046584; Fri, 06 Apr 2018 09:10:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523031046; cv=none; d=google.com; s=arc-20160816; b=BeFgHEbHC84xByeDqXeAeO4RyskKRoCp7AAVSIS666Olwuv2wMMmw8Amypzx8R9wKe 1TfNdq0xY4gcMusX5Y/Ckkx3eizLWkLDRYSERjo1yPBTZYkdACH/0yzAoW40y7hdtv+5 bVGzMyrBhNyz2twGQP/pQUnj+0lFYdYJ7oc13oVRNGc7kdC24lRsqOZ3bbB5tRaC8CZW 9DRLx4JKBTVNRTQyySFsrPN5HwpXbkZIQPmaESMlB3xTNax51DCSWDw0+1ow1OHyiHKl hTNoepjfFIfKrhJDHM2HqmMMm3/aJICLXVuRKv6k8CXyQ4SxfhLAPsgNofYkvuP8mX3A Ki6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=4qjaBhIBDkkHKyANJ7eTRrwgTBAaywsdFCnLQzNydTQ=; b=olsTvXXcTJJqd/hwC2UWu0aoc/HylRaNzGGPwz7EIa6N94E6NxH4u2hYZ/s8b/6raW r8jS1YoQfihT00KiTxNkCn03pLas+m29XQ9iYSkd0801aqCOaK5EjKrRlW5lwJvSL04m 52nYpWLiS7JpKxWwqKLYcgHWcxec6EeOnk53mHoIgqvKnhbivNPys+5MhG3L1CTEOELQ W39aGZi0TFVUrwA2sTie3VyqOKwsd5VSRRuKWK2iBBZ8I1xQBXC2Gq4FS1lYpOpqKBNO lyMRz0MlAigZPHpcX0XjRosUV2K18g0AWm0wrVOEpOkklUS0wA7jv+lVMpo49hwx6Af9 PG/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@cmpxchg.org header.s=x header.b=Bec/55qW; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y6si7966312pfe.248.2018.04.06.09.10.32; Fri, 06 Apr 2018 09:10:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@cmpxchg.org header.s=x header.b=Bec/55qW; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752563AbeDFQI6 (ORCPT + 99 others); Fri, 6 Apr 2018 12:08:58 -0400 Received: from gum.cmpxchg.org ([85.214.110.215]:50386 "EHLO gum.cmpxchg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751730AbeDFQI4 (ORCPT ); Fri, 6 Apr 2018 12:08:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=cmpxchg.org ; s=x; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject: Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=4qjaBhIBDkkHKyANJ7eTRrwgTBAaywsdFCnLQzNydTQ=; b=Bec/55qWAvc6/kYJS+968A2Fcr JsIpog2ohGmiW3koTB7DwyI1fZFUchW9fmzQFY4OYxF63Vzs0Xb7hQ/jSCivXwp3CoeMSu9Swa0Gl xtRX/6J+5NmIjGC7lcMTPaDGoUkKLDhUCDg8oqt86RBb56Rmk5VXNz9vTkAlKdiYwl2E=; Date: Fri, 6 Apr 2018 12:10:19 -0400 From: Johannes Weiner To: Andrey Ryabinin Cc: Andrew Morton , Mel Gorman , Tejun Heo , Michal Hocko , Shakeel Butt , Steven Rostedt , linux-mm@kvack.org, linux-kernel@vger.kernel.org, cgroups@vger.kernel.org Subject: Re: [PATCH v2 2/4] mm/vmscan: remove redundant current_may_throttle() check Message-ID: <20180406161019.GC20806@cmpxchg.org> References: <20180323152029.11084-1-aryabinin@virtuozzo.com> <20180323152029.11084-3-aryabinin@virtuozzo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180323152029.11084-3-aryabinin@virtuozzo.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 23, 2018 at 06:20:27PM +0300, Andrey Ryabinin wrote: > Only kswapd can have non-zero nr_immediate, and current_may_throttle() is > always true for kswapd (PF_LESS_THROTTLE bit is never set) thus it's > enough to check stat.nr_immediate only. > > Signed-off-by: Andrey Ryabinin > Acked-by: Michal Hocko Acked-by: Johannes Weiner