Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp889040ybh; Mon, 13 Jul 2020 04:05:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxpb8d7BmTDU6/Ux/sV7m8rLyUM6cjrCutm3qwaU7fVZ0B/BVJx9BMS7rNNzUB2NCTUdP+x X-Received: by 2002:a17:906:ae56:: with SMTP id lf22mr72202628ejb.59.1594638334681; Mon, 13 Jul 2020 04:05:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594638334; cv=none; d=google.com; s=arc-20160816; b=o5+4Li++hWInmUJhbdpQyZwPX9wPXugNH35gxUXdcSxREccVT8rRElucG+6zpSVlbn iCtDCYOr4LDzzCgE4xhcO23YxN76lQpXPP3N3+p0UQE0brSScxt6L831oIPeaPy8yi6Q tZwv0b/oOPiH6VyFYjWtBnopL54wEYGaL9RloB+SIYZL3/P4o9bYeKV88o8ZOlif7ak5 JwfipMCnyqh+AanEC+cmInu49Xyg+3wGo9IQuEYgHp8ouCSFx8tx/DpBkPtMVv4vLlVa vWt9CVPpFQDSgcBPZuxk+JmHdpB1rRtJtlARiV0R9mYn1xlR9o2PcG6BDkhlM8vdogKz DnIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature; bh=nN3m2m7pEWJxxgE22EVhuHKcD4TrCFPuvsPIp3KGX9k=; b=wYB3iH/zN2nzJYZmvdzsf153HwvjEyf1cCmbHcIXuzgENHhBEmkX3FHHg2IXR7jZVx SamflK2s5N3geBv0zJ6oKjQRp7ycw3TQJmROtu8xDwhIKz5Zugz3tKlwhml7ZNZaKAtC 3qWgOE42fw3Wt4z7FOgg6eZcLHjAs/ez6Fe1nd5o12rAdtlJciRN+WPdO93if2dt/O+/ ZhenOz+LDzXYD1OTImTxhIXiI9YQC9cjzoOaSvstluJ1nyE4i6cDdugKawmUBz/5usZy 00UHJLOSOKgHEpZgZd729KSBr82bLKhmU3ClXs7ASHiKeCf4WYCNaFwjZZRaswvlFcKE 8Ssg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chrisdown.name header.s=google header.b=RqGITRMK; 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 n1si8818878edy.409.2020.07.13.04.05.03; Mon, 13 Jul 2020 04:05:34 -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=RqGITRMK; 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 S1729485AbgGMLFB (ORCPT + 99 others); Mon, 13 Jul 2020 07:05:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729303AbgGMLE7 (ORCPT ); Mon, 13 Jul 2020 07:04:59 -0400 Received: from mail-ed1-x542.google.com (mail-ed1-x542.google.com [IPv6:2a00:1450:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BEF76C061794 for ; Mon, 13 Jul 2020 04:04:58 -0700 (PDT) Received: by mail-ed1-x542.google.com with SMTP id g20so13154215edm.4 for ; Mon, 13 Jul 2020 04:04:58 -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 :user-agent; bh=nN3m2m7pEWJxxgE22EVhuHKcD4TrCFPuvsPIp3KGX9k=; b=RqGITRMKNmMiYRdu6+vlFczkTYWFJp1c6+1yOC3ohAOzxc8vpAusqQEaQ0E2axiD3D QON4GHysm7Te5zUXV4Lz0GiISjc4xgU5T3b391ZpRcwJGbZ1amHXgAgqFQDjhLNJfgyG eX0sdzLY1TPzVvZ6Y5DHPyyoWITelQBhUSBaE= 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:user-agent; bh=nN3m2m7pEWJxxgE22EVhuHKcD4TrCFPuvsPIp3KGX9k=; b=ElJHNfDOokTv3+di8wba5xkBAoYohChuZ38OiaAR0dlaA+lQmNIQcM0vEzKoEYdSwm vEYVJZXhponDyYttaMkbNn5IZaO7R84ePSDoRPfR5QF+NkTVZ0a6AmZFA9kt2oEw+pQ3 6/fDlkjnOcu70940mQvzMgRpo3XPnxiX8a6KJ8nabqQfdfT7iVR7oYcEEtIG7/y9tw4+ VTBfL5znDWVuoTAK/P6VBh5/jx/8FTRDH5CZ1F76pDamcqPBpQndNlILVxswazvZM/1l zZdox4+Nj07AZgrfbQYOpox64ks9svM9KbfU5csGgnn00ffzxvjyQugRZBmEuGYqJoTb ZLFw== X-Gm-Message-State: AOAM532PUZN1RkHvu6muTybrWp8I1hQISQ1gVrKJmb1zMcsSEr5QiM7g 5IpCpOayfNsIF2obm54+FV23aw== X-Received: by 2002:a50:b5e3:: with SMTP id a90mr50641671ede.381.1594638297371; Mon, 13 Jul 2020 04:04:57 -0700 (PDT) Received: from localhost ([2620:10d:c093:400::5:ef88]) by smtp.gmail.com with ESMTPSA id j21sm11395375edq.20.2020.07.13.04.04.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jul 2020 04:04:56 -0700 (PDT) Date: Mon, 13 Jul 2020 12:04:56 +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 v4 0/2] mm, memcg: memory.{low,min} reclaim fix & cleanup Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.14.5 (2020-06-23) 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. Changes in v4: - Fix premature OOM when checking protection on root memcg. Thanks Naresh and Michal for helping debug. Chris Down (1): mm, memcg: Decouple e{low,min} state mutations from protection checks Yafang Shao (1): mm, memcg: Avoid stale protection values when cgroup is above protection include/linux/memcontrol.h | 95 ++++++++++++++++++++++++++++++++------ mm/memcontrol.c | 36 ++++++--------- mm/vmscan.c | 20 +++----- 3 files changed, 103 insertions(+), 48 deletions(-) -- 2.27.0