From patchwork Tue Apr 28 18:26:37 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Down X-Patchwork-Id: 11515355 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2094681 for ; Tue, 28 Apr 2020 18:26:42 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id D9E832137B for ; Tue, 28 Apr 2020 18:26:41 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=chrisdown.name header.i=@chrisdown.name header.b="fv22xKHy" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D9E832137B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chrisdown.name Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 03C3E8E0005; Tue, 28 Apr 2020 14:26:41 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id F2E9B8E0001; Tue, 28 Apr 2020 14:26:40 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E44078E0005; Tue, 28 Apr 2020 14:26:40 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0039.hostedemail.com [216.40.44.39]) by kanga.kvack.org (Postfix) with ESMTP id CCF878E0001 for ; Tue, 28 Apr 2020 14:26:40 -0400 (EDT) Received: from smtpin30.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 84AF9180AD806 for ; Tue, 28 Apr 2020 18:26:40 +0000 (UTC) X-FDA: 76758094560.30.metal41_3a3ae0b562c41 X-Spam-Summary: 2,0,0,d9e2d171fc685f69,d41d8cd98f00b204,chris@chrisdown.name,,RULES_HIT:41:69:355:379:988:989:1260:1277:1312:1313:1314:1345:1437:1516:1518:1519:1534:1539:1568:1593:1594:1595:1596:1711:1714:1730:1747:1777:1792:2393:2559:2562:2897:3138:3139:3140:3141:3142:3865:3867:3868:3870:4605:5007:6261:6653:7903:10004:10400:10450:10455:11658:11914:12043:12291:12297:12517:12519:12679:12683:12895:13069:13149:13230:13311:13357:13439:13895:14110:14181:14394:14721:19904:19999:21080:21444:21451:21627:30045:30054,0,RBL:209.85.128.67:@chrisdown.name:.lbl8.mailshell.net-66.201.201.201 62.14.0.100,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fp,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:24,LUA_SUMMARY:none X-HE-Tag: metal41_3a3ae0b562c41 X-Filterd-Recvd-Size: 3291 Received: from mail-wm1-f67.google.com (mail-wm1-f67.google.com [209.85.128.67]) by imf47.hostedemail.com (Postfix) with ESMTP for ; Tue, 28 Apr 2020 18:26:39 +0000 (UTC) Received: by mail-wm1-f67.google.com with SMTP id y24so3999334wma.4 for ; Tue, 28 Apr 2020 11:26:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chrisdown.name; s=google; h=date:from:to:cc:subject:message-id:mime-version:content-disposition; bh=UefID2OlDLM7XATtSz3mUqUNERRjSOJzh4SyUlDrdHk=; b=fv22xKHyOHTuLkg2qiGirsFBU8GgmId83+5knRJI3ydB77UUfZnOQLl2IPJwBd8Cn0 XAFIqD+eY3wN8GeHQaKHks5K+pqC/P5KTWCZ8yKyOkcZ0KE8nLyWPaTNSXSx/A5phVBN 4nvE4lcoWNruCSqXzVJoTXE3Sb9SMDUe6yi7M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition; bh=UefID2OlDLM7XATtSz3mUqUNERRjSOJzh4SyUlDrdHk=; b=KllPZevI6ftdyX0JU55WdXSXYCxj+wPT0fQBBX5wE0vuS30jO/yrW1wH+plAEP2nU1 RgsnnkOMqZuCDQ9Dt8DZMkPfnC1t+igsLiCplmSMzd8LHqBe5TWFe0tf1GwZFLmx5iMA 05RSl8rWamNPQ9LclgIdelQtoODTS47eE2eFai9wU9+SUS898Cz70sIhA2xweewwl5cb o8OjsUdNih5O1RpzR5qZax79D8+o5JHbsIl6BuPLSfdNBNngH640sLgOxt6sPB0DZ5UP oGeI58vbRtW8ETs4M6r31y3C5r2/kVkFLMGQrmGEOizlNJk8vw9jhDR5IjJz+IeMDe/o TfkQ== X-Gm-Message-State: AGi0PubCPgf2BS8/CAaABeX9tg4toI2/ahW2WUKgeHWD6negkoG8Pmpi pEGkKfOGFg5EsfozsSu/mQ/rQw== X-Google-Smtp-Source: APiQypLHoWk0qTwfpysUzM0q8vA2b+q+WLZCal3lFGsR0gVIyDEiREhK+8Cbm3Rdke/9HeCCnL2MFw== X-Received: by 2002:a1c:7415:: with SMTP id p21mr5807501wmc.93.1588098398739; Tue, 28 Apr 2020 11:26:38 -0700 (PDT) Received: from localhost ([2a01:4b00:8432:8a00:56e1:adff:fe3f:49ed]) by smtp.gmail.com with ESMTPSA id q187sm4316031wma.41.2020.04.28.11.26.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Apr 2020 11:26:37 -0700 (PDT) Date: Tue, 28 Apr 2020 19:26:37 +0100 From: Chris Down To: Andrew Morton Cc: Johannes Weiner , Michal Hocko , Roman Gushchin , Yafang Shao , linux-mm@kvack.org, cgroups@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/2] mm: memcontrol: memory.{low,min} reclaim fix & cleanup Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Bogosity: Ham, tests=bogofilter, spamicity=0.000005, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: This series contains a fix for a edge case in my earlier protection calculation patches, and a patch to make the area overall a little more robust to hopefully help avoid this in future. Chris Down (1): mm, memcg: Decouple e{low,min} state mutations from protection checks Yafang Shao (1): mm: memcontrol: memory.low reclaim fix & cleanup include/linux/memcontrol.h | 48 +++++++++++++++++++++++++++++--------- mm/memcontrol.c | 43 ++++++++++++++++------------------ mm/vmscan.c | 17 ++++---------- 3 files changed, 61 insertions(+), 47 deletions(-) --- 2.26.2