From patchwork Mon Sep 2 09:51:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Hocko X-Patchwork-Id: 13786974 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 8108ACD13CF for ; Mon, 2 Sep 2024 09:52:14 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E6E6B8D00B2; Mon, 2 Sep 2024 05:52:13 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id DF6068D0098; Mon, 2 Sep 2024 05:52:13 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C6F2F8D00B2; Mon, 2 Sep 2024 05:52:13 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id A41968D0098 for ; Mon, 2 Sep 2024 05:52:13 -0400 (EDT) Received: from smtpin06.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 610AC141B2B for ; Mon, 2 Sep 2024 09:52:13 +0000 (UTC) X-FDA: 82519332546.06.6B4A7D1 Received: from mail-ej1-f51.google.com (mail-ej1-f51.google.com [209.85.218.51]) by imf05.hostedemail.com (Postfix) with ESMTP id 8B570100002 for ; Mon, 2 Sep 2024 09:52:11 +0000 (UTC) Authentication-Results: imf05.hostedemail.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=kernel.org (policy=quarantine); spf=pass (imf05.hostedemail.com: domain of mstsxfx@gmail.com designates 209.85.218.51 as permitted sender) smtp.mailfrom=mstsxfx@gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1725270708; a=rsa-sha256; cv=none; b=2Z1NO957hYmi9xZ6V/Fj25rqFz059qHMnOtZY8HGLrz4rbUhiMx5+rNVeJuf5hrZDgFQX9 DZ5bxMrKkDFIj2SxEkGgtat9ws3U4z76I1qZ/9hdkq52E70hRgVyplCInH2sBUOjMBqo2J x8DYS4VygvVaG/gtr3BA1C0nsTHAB8s= ARC-Authentication-Results: i=1; imf05.hostedemail.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=kernel.org (policy=quarantine); spf=pass (imf05.hostedemail.com: domain of mstsxfx@gmail.com designates 209.85.218.51 as permitted sender) smtp.mailfrom=mstsxfx@gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1725270708; 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; bh=MPFmSaj7coQSAttoxzj1vOhb9+pMv8Cg49O405sE8AU=; b=4fHLOGDjDEEgxLamajA/Sx0YF6P9edYCP4lySDYC4sHxJ2ryIHldr7XrXYbbiKiYLE3XPL +Tdn4dLndZhP28KwCEuaETi+VL17csoxIF4jrivqHea4Nu3hx/Pa7gfDcgeBvz7kcsv0CO sfPD/+F81gJlyS4VddKTG+3A0FmpYAI= Received: by mail-ej1-f51.google.com with SMTP id a640c23a62f3a-a868831216cso462180566b.3 for ; Mon, 02 Sep 2024 02:52:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725270730; x=1725875530; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=MPFmSaj7coQSAttoxzj1vOhb9+pMv8Cg49O405sE8AU=; b=qX50Am5Rw6ayU4HRnHp9tSUGa+iaXJHMThXbA3lSfXs+3lhOg63Vs3o+S0rsf0Z8bo cvZnoO7sWkjIdOxyFJZbTUieT4U0c1eSmmqjc9Dnvlb+1tRHt1N05IqODh1vMQF1jxXE fDQ9FKLywLbaZT03ugE8uM7numv0JM9/kOElcpn2UJNfhAUY9PzVOlI65l8V/sTtQyyP kz5x2dqJifB2fgO82wd2OAc4TL7xgzgmHhXJecGuj9SIe/I/2/5xFoG+x2h2dURR8/6W R8lKOXStHEnuZUACJCnTi8SFNH0gG5Ur55wZHQoyKOG7EcJ3gWy/bt5fHEIwdo560wXw +DOg== X-Forwarded-Encrypted: i=1; AJvYcCV900UOs46awoeNUin0jMtJGfSDHzxMVmgJ5cYTLjtq73FHdfQfc06UQeLN53bhBWsP/X9IWZFCtg==@kvack.org X-Gm-Message-State: AOJu0YySHNjhnYpr1X9Ok0DJ5XMhqvSYsQuvXQ61UTtz/4FLGRwzHVjn 6jOPJnQsATPOcj6Sj1pQNloB3KW2URdrLzEwoUQqcMMC+AcZaRpi X-Google-Smtp-Source: AGHT+IFbXdsiiimIB03yggYoUOmWewJuFdD/owb35ZfSrgCsdk1w2zDvpPNMYffgXHvHFcnvX01leg== X-Received: by 2002:a17:907:9488:b0:a7a:9ca6:528 with SMTP id a640c23a62f3a-a89b93c7cdfmr438069766b.11.1725270729071; Mon, 02 Sep 2024 02:52:09 -0700 (PDT) Received: from localhost.localdomain (109-81-82-19.rct.o2.cz. [109.81.82.19]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a898900f079sm535327166b.66.2024.09.02.02.52.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Sep 2024 02:52:08 -0700 (PDT) From: Michal Hocko To: Andrew Morton Cc: Christoph Hellwig , Yafang Shao , Kent Overstreet , jack@suse.cz, Vlastimil Babka , Dave Chinner , Christian Brauner , Alexander Viro , Paul Moore , James Morris , "Serge E. Hallyn" , linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-bcachefs@vger.kernel.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/2 v2] remove PF_MEMALLOC_NORECLAIM Date: Mon, 2 Sep 2024 11:51:48 +0200 Message-ID: <20240902095203.1559361-1-mhocko@kernel.org> X-Mailer: git-send-email 2.46.0 MIME-Version: 1.0 X-Rspamd-Pre-Result: action=add header; module=dmarc; Action set by DMARC X-Rspam-User: X-Rspamd-Queue-Id: 8B570100002 X-Rspamd-Server: rspam01 X-Stat-Signature: s9sbbm6rgz3fbu7zi7zk5dusyx6b4zg7 X-Rspam: Yes X-HE-Tag: 1725270731-56935 X-HE-Meta: U2FsdGVkX1+PM/RiIeZtkHv+c43rXW5x43x8DIvBMAEc/vopiFqFt9rNfQ69WYeoIUMJoh4DXjtRyad7Yfnk5UUWKH4EMc58u/HHnJjLxxof+zWrn+mFcN3IJ7RUwOKxbSg5I4vHrd80NRs77ubvlVI9DT7syQZgPk39aPkuk++NECslvoqBPmKLWfabN2xuQU1124TE1oCXoTpcr5iMy41uCyUtAbWJJwF3Y70wqsop4vQ2lqp9Euv1MRtKJuoGaGEvFi3UODOLfnLGjzSc2XZvci/I+qmkmq91dDTLLHEtx+O/8pjfubP9w45cmSvOJxNRIhf4rd2Km8bVpOdv+61kQ1rKv0jmuNaJEMzeLlFeFG20qP5ZL4ldXLq5tmWnMP/og4AyDwQfWP5tMWS+6h3CXAobFtml6g6G+ZWGnSaje1NPai5rROjA4Gd3aTqBRGpKrpyCIg1pq/bBQBUxwCv/7rLPSXZzbCV6dD7Xdn0eBvGfZAEcETNd3b8TPJomNLBf23ShbwlbpkXy/4Bhg+Zc1xIlYwdEI7DrtZPH20P/YU9sR3MkH2pVGhpxtUftGH8QoWdrfdsw+Vh8dE4kxQyMpwtlg0Wc1LkC9ZfU1QbxhcmhVvJO86/R4cb/xxZqRu70PwkpAlQU5T4x3ZS2oownVfyaWTvrhL/lDfZJyRnfure4pTwhiy+MTc2c4hVCFvEYhZJ867PMm9QNkEpnaNTQbwdznAlySIcxobrj6hw6atPB67gRWO1cA0B/QoC2mbDdusxQD6G+5rPtQ/qkIw6R+YgX/rIcysI0heqpApkR+uUGpCD/srydi0bOHE3EoPlElPuqFBP7tLyYvL12YVjZn6FJ4GAU4PCYT9vWRDKgcM6/j2/2Dy8OXESCEUND2UpLwJWnlvfaLhwHmKlvniPwxyyrCbLOLFZfZvKyyDSeZgXUZRbt2fMAbfotUXy1s7bxmgxIdEh8aFSuPs5 0K0zBp26 gJICUNbi0tQioZ/q4mzBjFKYgqft+ptFiJ3WSIOkOb1hjR+9tzyX8N1QNrF6btXT5V0PhCy2Ce535t+BaGAtxiYuNrbx5EiffsqXgHaZw6Ehhw+pGQa+PbvSQU666dVT1Uxz589Cs/uSPXMfS7Y1xRpf1DwX2daY46H+Ec6n1V25rAQ4iTbEYAe4i4vTSdPtoPSbnb+8oVAj7iMjMJC9MbD74OEJA1rajpXohlRVvN2j1Zel/PTfxdF0P9KLxUJvM/kCpMA39ymwlPhjrTeE6QmecVfGV1LiMTSSz9d2I2EDohoImuF8WF/Ka6NHzOPyjA4l0tfIeEZKGaxfYKtxW19krQTHsfv9HaHCPCRpk8DSYMIjCcLU7l5YGrw4Am4g658LA++ur3CBYRPyddtLpscxFM+t0xakXcF6LX6/WkyWORLqOmtzwU0UDkDK/9UizhJnSAarxdOuvBRIpoKVSxVB/zqgJzOIUYmUV 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 previous version has been posted in [1]. Based on the review feedback I have sent v2 of patches in the same threat but it seems that the review has mostly settled on these patches. There is still an open discussion on whether having a NORECLAIM allocator semantic (compare to atomic) is worthwhile or how to deal with broken GFP_NOFAIL users but those are not really relevant to this particular patchset as it 1) doesn't aim to implement either of the two and 2) it aims at spreading PF_MEMALLOC_NORECLAIM use while it doesn't have a properly defined semantic now that it is not widely used and much harder to fix. I have collected Reviewed-bys and reposting here. These patches are touching bcachefs, VFS and core MM so I am not sure which tree to merge this through but I guess going through Andrew makes the most sense. Changes since v1; - compile fixes - rather than dropping PF_MEMALLOC_NORECLAIM alone reverted eab0af905bfc ("mm: introduce PF_MEMALLOC_NORECLAIM, PF_MEMALLOC_NOWARN") suggested by Matthew.