Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp4450940ybz; Tue, 28 Apr 2020 11:31:06 -0700 (PDT) X-Google-Smtp-Source: APiQypJEsaZjO1Kj4pVRpV2Wo0xar1d8Geodw4hJZdguNo+0g8D6UXhPFdLaR9wh2qjvfU7+lrbi X-Received: by 2002:a17:907:447f:: with SMTP id oo23mr9156046ejb.274.1588098665833; Tue, 28 Apr 2020 11:31:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588098665; cv=none; d=google.com; s=arc-20160816; b=f/0FPxd3p7H+ZWOaiAlZyymOwz+M7AYZgnTePz/YkM/F6/hJf8gDBaFpaLSYMWCJOA S+CBnnhhc/y60eYC0KAH2H9bEX5l6zsb1fMK9kn+dV2J8sqcdaoOCm07O3iSzKd3ov2o EuoNMlqcRjA0ZR6QYHDCDi/5LP/4NQyvEM5OMgZvBUGrbR4/3AlMcWna4Md8lJ2wTXw4 mktrzNxKDKttVI2dNI+41y0S/Gkhp6NMX14mCJxy4QwWPl3nZG/yAgYXgZFOrI+vrHaL vTMX/Wj9lLI1liNuBPDrOIlWFX+KsDhuKU1rEFg7RPbiv4BWrPeeqHNB3sQToWqYF2kG lClA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition:mime-version :message-id:subject:cc:to:from:date:dkim-signature; bh=UefID2OlDLM7XATtSz3mUqUNERRjSOJzh4SyUlDrdHk=; b=Cf5WiSf8ylElnEFoMkdvf5dVtwhVAfFbIOeAqT+q16/alsFfPCBOgYl/1wnuuCRmcY Ka9kuR3GQxwJz9WRD1QLZrtvuhAvZySO6SKRqenpjBvPkjTX/YmpDbxR3TNVfZwydQCB 0kJ0O3zD7OyoCcyIZ3ZesRviQCtfJXmgTeQMzsbordGfWvKMTgoJRg0xyG3QIvVJ1A36 SAgfONfCN5Vts3f6cWiKS4AOl/RGXvc3uOJ6xfc6imlGoP5IzU9WMtqtK76l/4uVcXG3 pWjWFcRHf0LkCGoSqhop5hr4hpbJdQlKlBB2yLuy05ZZv8D+38Dfn4rQxoCPmAdcuKtS HegA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chrisdown.name header.s=google header.b=fv22xKHy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chrisdown.name Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r11si2396255edc.575.2020.04.28.11.30.42; Tue, 28 Apr 2020 11:31:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chrisdown.name header.s=google header.b=fv22xKHy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chrisdown.name Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728821AbgD1S0q (ORCPT + 99 others); Tue, 28 Apr 2020 14:26:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728791AbgD1S0k (ORCPT ); Tue, 28 Apr 2020 14:26:40 -0400 Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A0A8C03C1AC for ; Tue, 28 Apr 2020 11:26:40 -0700 (PDT) Received: by mail-wm1-x344.google.com with SMTP id u16so3977509wmc.5 for ; Tue, 28 Apr 2020 11:26:40 -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=Pq1M2HOCUMpCV4GFTClhsj3oYpMUzpEeVtSavaWq/vX7OldqTIiVfjXcA9EVNCPf9c foXrM0h5sAXpFmbh69bmPD/vZQy77ZJCY6z5QmMBtrAJzrTfjvA+ug6W8U7/ZaldIUqe GssyCJKzELTknFFVU+DCsNTuyuSrvTiKzM5wUEMQB1fRZvODMTQH2+WvQp4Pj32QIzyC AYI0rkVled6SjF0pdMErz2MWP/dYZoqTIWxpjLV0o6EmmvToIsisqnP+cDGGSUv78bp/ LgIPtOHgnKDECFTaY+85GPPD/ofpEXP5OuuUAqg2oHndb0TY2xo/Q7+FBLI4X+dxoF2q savw== X-Gm-Message-State: AGi0PuYyywvYZnV35xWtjzJUld0qFWYpE7NSesBD3thKlFNy7vPbxisa zIq7gEW3kNgFOJQrFTqyOHUGZQ== 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-Type: text/plain; charset=us-ascii Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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