From patchwork Mon Aug 26 08:47:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Hocko X-Patchwork-Id: 13777439 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 E950CC5321E for ; Mon, 26 Aug 2024 08:53:59 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 6BA3A6B00A9; Mon, 26 Aug 2024 04:53:59 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 669D16B00D8; Mon, 26 Aug 2024 04:53:59 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 532BE6B00B3; Mon, 26 Aug 2024 04:53:59 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 34A7C6B04E2 for ; Mon, 26 Aug 2024 04:53:59 -0400 (EDT) Received: from smtpin16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id DB35C160DDC for ; Mon, 26 Aug 2024 08:53:58 +0000 (UTC) X-FDA: 82493784156.16.D947F46 Received: from mail-ej1-f49.google.com (mail-ej1-f49.google.com [209.85.218.49]) by imf05.hostedemail.com (Postfix) with ESMTP id 18078100008 for ; Mon, 26 Aug 2024 08:53:56 +0000 (UTC) Authentication-Results: imf05.hostedemail.com; dkim=none; spf=pass (imf05.hostedemail.com: domain of mstsxfx@gmail.com designates 209.85.218.49 as permitted sender) smtp.mailfrom=mstsxfx@gmail.com; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=kernel.org (policy=quarantine) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1724662351; 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=OoJCp3I2BA9KRjpRd6U32PSSLO6IqLbkxDMlM0I2ct8=; b=LXHEqul0Jcl+MU2lT6SU2TT4vqXXRYDBtg0Ur+u2uFk10q6nhMTqxbnAE7VpsKVvXikaia AHC+A9bwkVEWh47PX2V/t4ZZR/ehd4dqKcmqe6oNnkm7BCjvd/UuUFLZ/f7xcEy0FrfYmJ VXdUy9wvwc48AeddZ87aDKVOA9wthc0= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1724662351; a=rsa-sha256; cv=none; b=FJRHnjKdyINEB9cxbowDMLRaZErrstqHT7nQVHmVJDQOcrZKQFA++YQnO8+CFgThj0awPl tpGHaMjsq/uVgbjIZOH/5qSVuPd/tJKl5Ne9s7XEN9msmm1iFGXEZDvtdCJMFsilaPtk7P HLSqE1jkSuXGrd8K+Yea2DM6nSZhHYg= ARC-Authentication-Results: i=1; imf05.hostedemail.com; dkim=none; spf=pass (imf05.hostedemail.com: domain of mstsxfx@gmail.com designates 209.85.218.49 as permitted sender) smtp.mailfrom=mstsxfx@gmail.com; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=kernel.org (policy=quarantine) Received: by mail-ej1-f49.google.com with SMTP id a640c23a62f3a-a866cea40c4so461681066b.0 for ; Mon, 26 Aug 2024 01:53:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724662436; x=1725267236; 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=OoJCp3I2BA9KRjpRd6U32PSSLO6IqLbkxDMlM0I2ct8=; b=kDIVBdwFrhC6qo4wQRGzI2yOYqyPQYvxmqpBfTQ1kYr8+UwSeblSejBkrlGRLA96B+ 9C9Zb4CVv9njFJ5hCwh+aONYx1l5cdWPB16uvI+iOAOEzxgUgYV5eK5CNTrPNX3mtERB y03S3qT/XYwYVl+pc0tD8fhHBjFp7t4Yb7TRKsLI4wtfJuCXIKH3l0k4bXBRvB+TQbpd B5iYDjfXNONMmvfbjhfUChqdb5NC3VLIoiRSgIdfvwZWYozsPv5QFEJYb/KWAbwfbnGk y1ceAy+s91Ks7DWJuD/XFs35+LyEC8VGUEoyak31Ks4Cs9hSwCSPBXjEdL3kVO2esS+r juMw== X-Forwarded-Encrypted: i=1; AJvYcCXcpVvZgF+5WFOV31TKaiK35dzbbLQVO3rAPlnTOXPHCeZ1G5/1LFBvSxAO+3VzlxEW312M9wP92A==@kvack.org X-Gm-Message-State: AOJu0YzC1mL4PxocQueLiiF1MMxaj1kYUvy0pJM/41DHyE1p9R0fLdPg v/R94G5ZI35RSUzIzqUwinm1620B9NLlITzN/xfyNG0TllVvMaLM X-Google-Smtp-Source: AGHT+IEGem3Ufu8tZwQeokdMzmP3eaFZqmvIML5mh8Xq54tW+A+yVSA/vBHoHsP+JHd+JsIfra7TMw== X-Received: by 2002:a17:907:31cb:b0:a86:b00a:7a27 with SMTP id a640c23a62f3a-a86b00a7cfbmr511137966b.60.1724662434947; Mon, 26 Aug 2024 01:53:54 -0700 (PDT) Received: from localhost.localdomain ([193.86.92.181]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a868f21fe18sm630636866b.29.2024.08.26.01.53.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Aug 2024 01:53:54 -0700 (PDT) From: Michal Hocko To: Andrew Morton Cc: Christoph Hellwig , Yafang Shao , Kent Overstreet , jack@suse.cz, 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] get rid of PF_MEMALLOC_NORECLAIM Date: Mon, 26 Aug 2024 10:47:11 +0200 Message-ID: <20240826085347.1152675-1-mhocko@kernel.org> X-Mailer: git-send-email 2.46.0 MIME-Version: 1.0 X-Stat-Signature: a7wdpgesaaorhiocoe1npos4cr5wbt3y X-Rspamd-Pre-Result: action=add header; module=dmarc; Action set by DMARC X-Rspamd-Queue-Id: 18078100008 X-Rspam-User: X-Rspamd-Server: rspam08 X-Rspam: Yes X-HE-Tag: 1724662436-139087 X-HE-Meta: U2FsdGVkX19knShx0h5CHQXTt2WIY0l3pD/A0p1795LVJqLlIknyEYY883vj5wVz+VbJi+5jl6EqOsMqVU/P+T32Opi63wOpX+3IK/aPJHobUlSMiHivdIyop8v7c9mhCx0oHLLvXdgeVqZbpWCTATvSGmbmkTJq3jNNaLvqK7W4xUlBYqFrxLZEnWYujQ6tZJvihNUzy4YF0D+N2zaL7wEpUPCt37eBXEeNmqL9/opGV7xi4ChndSqwMTIZHofyL6FO/8f3YppfADY/5g/A/L9CmU++BrUtsjf+ELV4k02FuNSvuKu6uqWUFj5WVEcgi23K/IDeiUk56aYogTT4yG76DQWQgnce4uTSbHZ3Xe6pOockZoyKFbLSZ+OGXBVzrJ9kNc90clvZ5exzLCJmFkbRHcNCLXRmDAxh/hg5SHo73m8ELZlgBlSC41sIj7TuzNReQcYcQaonEMpNr6QDJdDiFwwTF8HPOSrsJ9U5T44sSZ29YLWeoZe2Sw3cycuPC04Sb6Yo1w8zGSyHLczwDzpH2GV4w0GjfUzY0PGCnSgApBvlbIywDbS0PtU6i2efJUozKWMde2rHbz5UO92RW3bALoJKcHsOLzxQx1yr3H6ObcYU50KfHz4FTbjfRfXYdKQZJkmyAmCVzNB0Vz7569s0bWLka+yXyzBZQRHaLsxYvcq1uf0WNMjaXbtnHRnq5cZ/wHNuiO8OEAZXMRi/GIX9WwGNedBHtmN+FCeLvQvSNhLoTeb+6v9LRlZOGFLSPUblZ0RDQYw/VOJAWUBsliElQvjrldPdRZhJK6HAqCfTrOVBNwU2Li0z1FgxMC9qQLuoY1aCOol79F3/vHUUF8fANIFJw1CXUIb7xEHIkl2C6Jge3aAe+93ASDriPNOldJP5WhHo6d5phfZ9OGvIxjUhPmldgbWiJSfoWW8TPwmMSAJ3o80nhhlZsSCaR+f0h/JVxQqZcUvuk2i/T3R SC4Ft7ih GDppJf9EWGciYXkUoleaLuWOrlj0ALw+Q6n/IkHhcUxHWjZLfuzOiF79bwpwXpZvtvPbmnO/Il8zB1QBKKpluHh1QUT5aH+xps/bdLrFvtcSIB8tYMhEwvldr/WXLFTsZong9qE3HoJ5Miu5y1LmBn5pGPY+J0NDptN8rJDWLzvhK4wHomdDzSe1lmU/yUmnzDKM7htJfFh2qQyZwq18Sh02SHjhNtQQu4KHnVxhWXbJdmS1X4PQGPkWusupDDaS8M+0Mr8WryIPQpmcJ0TJP7Tj0YB9OrbyqUrQ8Z9w56Akxn3kPm0ISC1PVn5CHGLZPrbLmjZxU0c/spa8zgjG4cwV1Re+TGpK+SpBJ++kmRPEcPdHLw8d2+QZHTjvrizsIvUOyAkpozm/Et7Y4i3q5ZyqBAJ8q9c2XRdkh10tDlV2562+AizEtTbfryJ7xTOKboLcmK44Rwi/UKO0giKORQulQaCw9cEMfFIte+yMD6CK+MyrIbgQITdQucyq2fjEhp4FOkWRNdCvLyKFKCi0vBAlY1g== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000024, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: https://lore.kernel.org/all/20240812090525.80299-1-laoar.shao@gmail.com/T/#u attempted to build on top of PF_MEMALLOC_NORECLAIM introduced by eab0af905bfc ("mm: introduce PF_MEMALLOC_NORECLAIM, PF_MEMALLOC_NOWARN"). This flag has been merged even though there was an explicit push back from the MM people - https://lore.kernel.org/all/ZcM0xtlKbAOFjv5n@tiehlicka/ These two patches are dropping the flag and use an explicit GFP_NOWAIT allocation context in the bcache inode allocation code. This required to push gfp mask down to inode_init_always and its LSM hooks. I am not really familiar with this code so please give it a thorough review.