From patchwork Mon Dec 12 17:13:42 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dennis Zhou X-Patchwork-Id: 13071263 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 69521C4332F for ; Mon, 12 Dec 2022 17:13:49 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id ED8D58E0003; Mon, 12 Dec 2022 12:13:48 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id E8A1F8E0002; Mon, 12 Dec 2022 12:13:48 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D50C48E0003; Mon, 12 Dec 2022 12:13:48 -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 C46348E0002 for ; Mon, 12 Dec 2022 12:13:48 -0500 (EST) Received: from smtpin02.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 907B2160B40 for ; Mon, 12 Dec 2022 17:13:48 +0000 (UTC) X-FDA: 80234301336.02.DB68B46 Received: from mail-yw1-f182.google.com (mail-yw1-f182.google.com [209.85.128.182]) by imf18.hostedemail.com (Postfix) with ESMTP id EC7B21C001E for ; Mon, 12 Dec 2022 17:13:46 +0000 (UTC) Authentication-Results: imf18.hostedemail.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=kernel.org (policy=none); spf=pass (imf18.hostedemail.com: domain of dennisszhou@gmail.com designates 209.85.128.182 as permitted sender) smtp.mailfrom=dennisszhou@gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1670865227; 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-type:content-transfer-encoding:in-reply-to: references; bh=iPWM30xIqvrbd4o8O1iaeCeAFtWpQew9Gut9+/kteFU=; b=DtaMkMXQJBlVjG1u4NSw97fk4Th2mnvmgxsbRb1NWNecFW3ffDpdreouvyGHq/kMssDqcS 4Eaw3vejLjF151YEf1sV7gGGeqMbLWFSb++bTQCTR5W50e9uPScVUDyVw0HLuxOdOzFRbo PAFlS8Bi2IIq1G96YCItHy8eJSNZsBY= ARC-Authentication-Results: i=1; imf18.hostedemail.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=kernel.org (policy=none); spf=pass (imf18.hostedemail.com: domain of dennisszhou@gmail.com designates 209.85.128.182 as permitted sender) smtp.mailfrom=dennisszhou@gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1670865227; a=rsa-sha256; cv=none; b=Mr5kbenmYudz+O3FsgWfXRVcoe4DMiZq+VkczVoFzpCWF8Xm6d61qHV9ob4PF242cpeplO ZPQkJwxI9APSxgZ5Rq0FDtzkQsZxHsGyyCyDY6+X3ca/vbtGU8+gLPiaCNIsgVDHtGo5Q5 +ozQjvq/xAeVKDIC1AeA1q0DTMCcEu4= Received: by mail-yw1-f182.google.com with SMTP id 00721157ae682-3c090251d59so156033957b3.4 for ; Mon, 12 Dec 2022 09:13:46 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=iPWM30xIqvrbd4o8O1iaeCeAFtWpQew9Gut9+/kteFU=; b=gG9xrgRGutDtTLvg7g6JUO/jDPeywZFOoPV66JTYppzkzFPGqY2lPVA7IOqqXyj5w5 DImbiKZ/39EkPqx2jP6lu7oiMcGuZRs4nY9UoAaxjoGAYhpyQq/n6d5rHayD7RTIeeWV mBqfPJDeEwiTxYuOcQoifbvvbjh3nu0Jn+oJ9MAJBfcfgKQObeoX4qSft4rx9fZIZTXP yi8IpesRXLetm4oRsvQRzPjDND6ZnpE8Fa+DqsuVC+mrAa584aZ4+H500o+TMylG25fV m49fGM7RwXWfklnbMFI5bZjVveWnqD4xy65XOZ5iFpeRvtlKSU2vazQSYDLUGSVb4rds e4Pg== X-Gm-Message-State: ANoB5plJ7iY0EAVIPy6wUCXXW06C55UrZa3NB4AKW8ix/DwiXR5FopaH tROfUohvhSxgB7buaB2Vt3I= X-Google-Smtp-Source: AA0mqf7xFC0hw+JpNA/Cv6k/8lCgNkxROruITqT6CSc2IVeazbYSlT1I9tPEjaRmV14JaMUCvb0ijA== X-Received: by 2002:a81:190e:0:b0:364:1ba5:67e4 with SMTP id 14-20020a81190e000000b003641ba567e4mr15183353ywz.17.1670865225813; Mon, 12 Dec 2022 09:13:45 -0800 (PST) Received: from fedora ([50.220.117.222]) by smtp.gmail.com with ESMTPSA id f1-20020ac84981000000b003a7fc70d59csm6082190qtq.41.2022.12.12.09.13.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Dec 2022 09:13:45 -0800 (PST) Date: Mon, 12 Dec 2022 09:13:42 -0800 From: Dennis Zhou To: Linus Torvalds Cc: Tejun Heo , Christoph Lameter , Vlastimil Babka , Baoquan He , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [GIT PULL] percpu changes for v6.2-rc1 Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Rspamd-Queue-Id: EC7B21C001E X-Stat-Signature: pdnta8s1r81gc6nwym61xsc5i5iu45ry X-Rspam-User: X-Rspamd-Server: rspam08 X-HE-Tag: 1670865226-33599 X-HE-Meta: U2FsdGVkX19zobnNEOII2mbhaF8ogkZGAbAXxvSVI5z6Q9pnJexVhd2qNbCVE0Ia6zlnZOrgu1cS2Ma6Y9zSJm0EQwk1/KTY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piC9+gCsNW5W8NVzkKmZnH7Jn0KybLIWzqeA== 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: Hi Linus, Baoquan was nice enough to run some clean ups for percpu. There will be a minor merge conflict with Vlastimil's slab PR [1]. This is due to adjusting the PERCPU_DYNAMIC_EARLY_SIZE up for proper early percpu reservation size on arm64 with 64k pages. [1] https://lore.kernel.org/all/20221122163634.3b21cf71@canb.auug.org.au/ Some new eventual work is potential BPF accounting of percpu. Thanks, Dennis The following changes since commit f0c4d9fc9cc9462659728d168387191387e903cc: Linux 6.1-rc4 (2022-11-06 15:07:11 -0800) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/dennis/percpu.git for-6.2 for you to fetch changes up to d667c94962c1c81ef587ac91dc5c01a1cfe339c7: mm/percpu: remove unused PERCPU_DYNAMIC_EARLY_SLOTS (2022-11-07 22:59:28 -0800) ---------------------------------------------------------------- Baoquan He (7): mm/percpu: remove unused pcpu_map_extend_chunks mm/percpu: use list_first_entry_or_null in pcpu_reclaim_populated() mm/percpu: Update the code comment when creating new chunk mm/percpu: add comment to state the empty populated pages accounting mm/percpu: replace the goto with break mm/percpu.c: remove the lcm code since block size is fixed at page size mm/percpu: remove unused PERCPU_DYNAMIC_EARLY_SLOTS include/linux/percpu.h | 7 +++---- mm/percpu.c | 44 ++++++++++++++++++-------------------------- 2 files changed, 21 insertions(+), 30 deletions(-)