From patchwork Fri Nov 18 10:17:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mel Gorman X-Patchwork-Id: 13048008 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 31856C4332F for ; Fri, 18 Nov 2022 10:17:28 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 811DB6B0071; Fri, 18 Nov 2022 05:17:27 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 7C2DE6B0072; Fri, 18 Nov 2022 05:17:27 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 68A126B0073; Fri, 18 Nov 2022 05:17:27 -0500 (EST) 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 558706B0071 for ; Fri, 18 Nov 2022 05:17:27 -0500 (EST) Received: from smtpin13.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 25C321C5D43 for ; Fri, 18 Nov 2022 10:17:27 +0000 (UTC) X-FDA: 80146160934.13.BC17909 Received: from outbound-smtp14.blacknight.com (outbound-smtp14.blacknight.com [46.22.139.231]) by imf06.hostedemail.com (Postfix) with ESMTP id 914E1180004 for ; Fri, 18 Nov 2022 10:17:26 +0000 (UTC) Received: from mail.blacknight.com (pemlinmail03.blacknight.ie [81.17.254.16]) by outbound-smtp14.blacknight.com (Postfix) with ESMTPS id EAB071C4542 for ; Fri, 18 Nov 2022 10:17:24 +0000 (GMT) Received: (qmail 3079 invoked from network); 18 Nov 2022 10:17:24 -0000 Received: from unknown (HELO morpheus.112glenside.lan) (mgorman@techsingularity.net@[84.203.198.246]) by 81.17.254.9 with ESMTPA; 18 Nov 2022 10:17:24 -0000 From: Mel Gorman To: Andrew Morton Cc: Hugh Dickins , Yu Zhao , Vlastimil Babka , Marcelo Tosatti , Michal Hocko , Marek Szyprowski , LKML , Linux-MM , Mel Gorman Subject: [PATCH v3 0/2] Leave IRQs enabled for per-cpu page allocations Date: Fri, 18 Nov 2022 10:17:12 +0000 Message-Id: <20221118101714.19590-1-mgorman@techsingularity.net> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 ARC-Authentication-Results: i=1; imf06.hostedemail.com; dkim=none; spf=pass (imf06.hostedemail.com: domain of mgorman@techsingularity.net designates 46.22.139.231 as permitted sender) smtp.mailfrom=mgorman@techsingularity.net; dmarc=none ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1668766646; a=rsa-sha256; cv=none; b=nQ6/aiUx00zYcUQIO8n0zupIELjcxMLSNNktMOdD+nujqgbDZMagcTl1kR1zztxJyAcqPN WpcPCfWyCuxYgDQiG7GUB8R6O+HcQIJHPnq3/WNM8OsW2iGKXF9zSOS8lN58oNja+LTIKN 5I3uxxLXUTQfh+5gzu8n8nQNX7wOWBo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1668766646; 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=OOnN0SM34ZKiA9DZ8KYVkZimFrn5AlZydLCruMxlq30=; b=0cPiXFOGMIsuVlInzxR6goFyT/ieh2Z4Pf2aGNKCLImESpHgmIE3LzTtS4YasyzULs9an1 JwWP9YU4/mthp1bQrfmfZbaH7127akae2jYqSitq039Mx3r+nUUpg4EVetJBa8bJOeqk/g WlxG2Sog9TfE5hju5y8j5er0BqQ+44I= Authentication-Results: imf06.hostedemail.com; dkim=none; spf=pass (imf06.hostedemail.com: domain of mgorman@techsingularity.net designates 46.22.139.231 as permitted sender) smtp.mailfrom=mgorman@techsingularity.net; dmarc=none X-Rspamd-Server: rspam02 X-Rspam-User: X-Stat-Signature: f9xpbkbc1tzaea65h16fijrejp3e8p79 X-Rspamd-Queue-Id: 914E1180004 X-HE-Tag: 1668766646-481036 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: Changelog since V2 o Fix list corruption issue (hughd) o Tighen up locking protocol (hughd) o Micro-optimisations (hughd) Changelog since V1 o Use trylock in free_unref_page_list due to IO completion from softirq context (yuzhao) This was a standalone patch but now split in two. The main changes since v2 are fixing the issues exposed by Hugh's shmfs stress test. Patch 1 is a long-standing issue that is technically a bug but happened to work because of how it was used. Patch 2 leaves IRQs enabled for most PCP allocations with more details in the changelog itself.