Message ID | 20240118123911.88833-6-gang.li@linux.dev |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-30108-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2bc4:b0:101:a8e8:374 with SMTP id hx4csp309222dyb; Thu, 18 Jan 2024 04:41:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IH2AF5k3FlZLNwLJ+1M4eMJNxEdtnCstj62wiEcB4rAbI3vnWuvmKq2ZxvivSaEoBQ6Msjb X-Received: by 2002:a05:6808:1821:b0:3bd:9ea0:9825 with SMTP id bh33-20020a056808182100b003bd9ea09825mr412932oib.8.1705581660511; Thu, 18 Jan 2024 04:41:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705581660; cv=pass; d=google.com; s=arc-20160816; b=X2Zvlb/ZRk4LBRIMJOtK9sDpJjno6WjPKvOr3FkS4VLtO2DJHcAMHOL08gB7eceAFj Tb9s0j8+dTIyY657ZQ85MxeL9nU3CXQm7ReasgLBGg3e+ZHjrUznrRBgl0NEMkzW1qNS voAhZ/L1vOlX4VJy3AjWftgCVyJRFgzA2DuwyexLnvS02qbvRw5aMrNnm6ISVRdY6o2J AhA7Jf09hJcoLXyn8DZDYxpmAqnha2w7TfUbHRnQagX1h7U82G/R+Ko+scTj56oubd6A l2lh1e7sWwnUY91VsgocZG3DoDe8H6IVSaTWVOD+cOwynw8kew6oEKBmCB1AAQIudXLw JMBg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=3rzCZ8lCNG24OGfPGmikjgH8KJ+w2O3JRacIdnjmilU=; fh=5n5b5+XOwLgGNDePhvfXysty56rnkWOs9jaHEODdVeE=; b=OaMeGt9a8+zaFRFhBuGwu4ARMgoKx1pvzQlZ3503qQdWijrDe4HTcJAX6c8i6spppa 0dHp+mnq/LWJcocqMhiZ59lAG9YnAZ0MCnfEeasEQBU29V1u6tKWWY1AqZE/tdJ4nUAz 0d3qlG8iL7nRbhGx6PAVekPpZC0qwx5BXpYBPgq3vAYTbRm9SoQ1UmsUhBEr3h4OQ2Xs FKppXi5ETzIRka3RNdbPSPzEP8X4cHy9cBaKoaKcSnQW3HPO59pHOy16C0pBCbsxEpQe cIq/bHSgc1D46hQPjzziU+eQCD/1Ff/o0IJsTuXYORckMCWT2EOppYzx8Bq7XzqE/C3+ rIUQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=KtpyW0v2; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-30108-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-30108-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id o13-20020ac87c4d000000b0042a06a2786dsi4871123qtv.425.2024.01.18.04.41.00 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jan 2024 04:41:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-30108-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=KtpyW0v2; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-30108-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-30108-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 0EDA81C22A27 for <ouuuleilei@gmail.com>; Thu, 18 Jan 2024 12:40:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D949628DD8; Thu, 18 Jan 2024 12:39:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="KtpyW0v2" Received: from out-186.mta1.migadu.com (out-186.mta1.migadu.com [95.215.58.186]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ACD35288DC for <linux-kernel@vger.kernel.org>; Thu, 18 Jan 2024 12:39:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.186 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705581577; cv=none; b=eZcD0/HK90zi5bdnqKrqQQbITCWsfmx//nkdGt9RXQnj4rsMOx4tK/O6QZM7Ty2IGv8O+P66rWG0HVlb84TcJg1FHUSv91Oxy1XPitQkYhVU0zv/GHmKg9CzQ+Hk/eYxh+abmbkSEiCu85/UZXhXvCH2O01PK0fjmWE+O8+oxcM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705581577; c=relaxed/simple; bh=XSro0p3/2owMvM8Zh8uPwpVA7jK+Krjd+00B7HUH8fU=; h=X-Report-Abuse:DKIM-Signature:From:To:Cc:Subject:Date:Message-Id: In-Reply-To:References:MIME-Version:Content-Transfer-Encoding: X-Migadu-Flow; b=OMQP4HuzAMDA2oI16B+UTK3tYBdJtOAHqqrNmf07cP8jEQOy4JQ1A7Y5mdY4+Le+aJpsWdYpX/GKmz68dwwNSk5Dkz+gerVR9W84yIFtYwYA0q1lX6+2V13bVzv8utmn1HobXgjDEGH3Uv9WBUPsZxebCp+gH29Kvq3vtd1kYIo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=KtpyW0v2; arc=none smtp.client-ip=95.215.58.186 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=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=1705581573; 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: in-reply-to:in-reply-to:references:references; bh=3rzCZ8lCNG24OGfPGmikjgH8KJ+w2O3JRacIdnjmilU=; b=KtpyW0v20XM30xjzzrt8V+LXaqpJn/HYDNwQSTu79dCyouAgeE0hQM7GJroLPkZEnHmer0 cBfy/tfhV2ddCHmFsSRKJ/w+AfR7SmvEPO2Z0yNK7aPw4slULAXTf1NDwQUvbVo+W+kEM3 i2FYaMeUJlQpPW/cVSmdx7Y1dz5jERg= From: Gang Li <gang.li@linux.dev> To: David Hildenbrand <david@redhat.com>, David Rientjes <rientjes@google.com>, Mike Kravetz <mike.kravetz@oracle.com>, Muchun Song <muchun.song@linux.dev>, Andrew Morton <akpm@linux-foundation.org>, Tim Chen <tim.c.chen@linux.intel.com> Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, ligang.bdlg@bytedance.com, Gang Li <gang.li@linux.dev> Subject: [PATCH v4 5/7] hugetlb: have CONFIG_HUGETLBFS select CONFIG_PADATA Date: Thu, 18 Jan 2024 20:39:09 +0800 Message-Id: <20240118123911.88833-6-gang.li@linux.dev> In-Reply-To: <20240118123911.88833-1-gang.li@linux.dev> References: <20240118123911.88833-1-gang.li@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1788431995097561318 X-GMAIL-MSGID: 1788431995097561318 |
Series |
hugetlb: parallelize hugetlb page init on boot
|
|
Commit Message
Gang Li
Jan. 18, 2024, 12:39 p.m. UTC
Allow hugetlb use padata_do_multithreaded for parallel initialization. Select CONFIG_PADATA in this case. Signed-off-by: Gang Li <gang.li@linux.dev> Tested-by: David Rientjes <rientjes@google.com> Reviewed-by: Muchun Song <muchun.song@linux.dev> --- fs/Kconfig | 1 + 1 file changed, 1 insertion(+)
diff --git a/fs/Kconfig b/fs/Kconfig index 89fdbefd1075..a57d6e6c41e6 100644 --- a/fs/Kconfig +++ b/fs/Kconfig @@ -262,6 +262,7 @@ menuconfig HUGETLBFS depends on X86 || SPARC64 || ARCH_SUPPORTS_HUGETLBFS || BROKEN depends on (SYSFS || SYSCTL) select MEMFD_CREATE + select PADATA help hugetlbfs is a filesystem backing for HugeTLB pages, based on ramfs. For architectures that support it, say Y here and read