From patchwork Thu Oct 24 06:57:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shakeel Butt X-Patchwork-Id: 13848401 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id E06FED0BB68 for ; Thu, 24 Oct 2024 06:57:27 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 5EB9D6B0083; Thu, 24 Oct 2024 02:57:27 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 59B616B0085; Thu, 24 Oct 2024 02:57:27 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 464FE6B0088; Thu, 24 Oct 2024 02:57:27 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 26D026B0083 for ; Thu, 24 Oct 2024 02:57:27 -0400 (EDT) Received: from smtpin25.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id E0C9B810EC for ; Thu, 24 Oct 2024 06:57:10 +0000 (UTC) X-FDA: 82707589020.25.471D6F1 Received: from out-184.mta1.migadu.com (out-184.mta1.migadu.com [95.215.58.184]) by imf30.hostedemail.com (Postfix) with ESMTP id 8A1D380003 for ; Thu, 24 Oct 2024 06:56:50 +0000 (UTC) Authentication-Results: imf30.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=TspUYcjf; spf=pass (imf30.hostedemail.com: domain of shakeel.butt@linux.dev designates 95.215.58.184 as permitted sender) smtp.mailfrom=shakeel.butt@linux.dev; dmarc=pass (policy=none) header.from=linux.dev ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1729752893; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=KnFX2m6jkpkqkNftsFITtlFPeLSY1W41MMcnLCh4dYw=; b=lVhy4lnAY+rCwISlN8ePmW5LQ3M2T3nfLeUrqgKMS0c8vO1zNAvxNYzfSpnhU6wvwNokJT 4awEukNhZv2GkZoip1hixWib2uKs4jRF2j/OfesTBATLaLXWfJVvLY/kIJ+Tzo7A8zTVyz RoKZlfG23gP+lu3qjGoXBTQ++Kp3kjU= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1729752893; a=rsa-sha256; cv=none; b=Xrp5+tw/ffbkH6C85PeZDbi9jABJjS+Cg7Z5csx3ibS9N1dpI+orpiXmFe6TeaGFOBEo80 1JL9krPxIbbZ9HKz/7XECVPC1N+gV6cEVoM3YttR5QoO7FLgkalqacJ4XHhREmUuXPvI3X 65W2+EmOvFUMYvJlMVTGR8QY0gNRsis= ARC-Authentication-Results: i=1; imf30.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=TspUYcjf; spf=pass (imf30.hostedemail.com: domain of shakeel.butt@linux.dev designates 95.215.58.184 as permitted sender) smtp.mailfrom=shakeel.butt@linux.dev; dmarc=pass (policy=none) header.from=linux.dev X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1729753043; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=KnFX2m6jkpkqkNftsFITtlFPeLSY1W41MMcnLCh4dYw=; b=TspUYcjfzaIFDz5Rs6jj026nPmaG2edsEPEKCkjp3ZDuivc4FFk3OglfYNcH8yBRU0K19r DOHBUG5p6nULP4uryvh9jv0x1srywC5TiN6UefeOlNmwrGRPR5FO/nis6SqJFP3JWX5isX gCY4AN7HpRIAYkLnRsKPNKurkLs8l9g= From: Shakeel Butt To: Andrew Morton Cc: Johannes Weiner , Michal Hocko , Roman Gushchin , Muchun Song , Hugh Dickins , linux-mm@kvack.org, cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-doc@vger.kernel.org, Meta kernel team Subject: [RFC PATCH 0/3] memcg-v1: fully deprecate charge moving Date: Wed, 23 Oct 2024 23:57:09 -0700 Message-ID: <20241024065712.1274481-1-shakeel.butt@linux.dev> MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT X-Rspamd-Queue-Id: 8A1D380003 X-Stat-Signature: mekzctbhoqmy6nwf4kidu65uedeexbxb X-Rspamd-Server: rspam09 X-Rspam-User: X-HE-Tag: 1729753010-881128 X-HE-Meta: U2FsdGVkX18n5VEzm2hv5U6BSeCkIb6+P3ZRaybbnYKmI66zizNsLBRzORjQRuhbHjeu963+7kupBBiwRNETX4f3w+ipViVRvVJFQmEjzBkb24noqMku4TtAFc+vhYd1bpd7Wl5kArsGrPiX/g2sXuvm8hXbtsnRT1mRBIkVzCgsvSNy75SIoynwd0+W7qvsE1n8L70pI1LKlojIMVVvzhW4YWrzNIiZVVx7CbBTE0WIb4JsK6mq0CGlooh1C07HrksKOLj4g4zPYvGIr/5wsNKPXr37cnBon4ElwGQF9SEti5UARH72TVCEZrUEBA8JtBmLyEDgoRObavEsTHdwLYTrBuSWIjvP4TrNbBgCMmwvKpzYFceUyrIozB4kVeWpJ5zCXNrsZm8sALxF5kAchq6i099OErevVrq/Ti5vNsjJJlVgSKb+5/kZsp0DTBVLZcDKl3kYE9nh1YLDVp98tH7ZLMSlKyaFq77gjU5Mzg29WRvo1CSTxVJgK5ko/zynoBUlF7TPvppfGTMusAVS33EXYmyvkVL8OsqfYEuVyeD38otJaCk3L7ss5vyUCKUqyu0zYN0yrK4DjUeZgMfEtHdTM09dn9evhIzfh5iRXUMYHSal9c2Rx4/uADj0DJWZ9Y2EdtgHfB3bWS0WL69MU1LaePriyWsDPM+dV1aeNEOAHaEQYawQG688N6AMD3PkCXcsYjGTnZAUHd5bCqraIYf/JyiObQoaLGN+1GVJbFz8xIMeD14Pg7QKAIu8qZRTeBcGXR8stXDKUW9kkrL9Yc1pXc814rum+BadwlZCkRdDQbVIpTDOsaDrTZEa/eiP/b2sTlRGnz7Knm0Ii2B2LRYxlbuFZBpK5oWaLjwy69W4GACOHFdPNBP4EZEgDeR0THdNwKyb2p61P1YupOkY6pw2+SwDz6fugR7o2tPFkdWk4HEfQPzyDCLxkFUdy6izIktfz/aQiaC2a7lQajO rsHj7q1Q 67Bw7YxAsemiF0eHtDAg3LpT2NdJYNW7PESrrM9Ub3bTcBV5yf3qbwqmEsKCVO5a7XDNxXBhdxX+zIMzEnRDmWZ/ByX5mwrNuWgra5JzVyLCApQR9W8tF5p4j6ROszRSizKErHovH143bpTE= 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: List-Subscribe: List-Unsubscribe: The memcg v1's charge moving feature has been deprecated for almost 2 years and the kernel warns if someone try to use it. This warning has been backported to all stable kernel and there have not been any report of the warning or the request to support this feature anymore. Let's proceed to fully deprecate this feature. Shakeel Butt (3): memcg-v1: fully deprecate move_charge_at_immigrate memcg-v1: remove charge move code memcg-v1: remove memcg move locking code .../admin-guide/cgroup-v1/memory.rst | 82 +- fs/buffer.c | 5 - include/linux/memcontrol.h | 59 -- mm/filemap.c | 1 - mm/memcontrol-v1.c | 960 +----------------- mm/memcontrol-v1.h | 6 - mm/memcontrol.c | 14 - mm/page-writeback.c | 21 +- mm/rmap.c | 1 - mm/vmscan.c | 11 - 10 files changed, 8 insertions(+), 1152 deletions(-)