Message ID | 20240126152411.1238072-6-gang.li@linux.dev |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-40273-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:fa17:b0:106:343:edcb with SMTP id ju23csp19228dyc; Fri, 26 Jan 2024 07:44:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IErLfSK7GvoqmeKGY1ZwPhG+WywmSczOEiQegftrwhoy1Wb4xa+/uJl9SKSNQQh8za+JGg/ X-Received: by 2002:a17:902:dad1:b0:1d8:a827:c338 with SMTP id q17-20020a170902dad100b001d8a827c338mr498918plx.120.1706283898957; Fri, 26 Jan 2024 07:44:58 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706283898; cv=pass; d=google.com; s=arc-20160816; b=jWn67ZUXYz41ejFWku/R7EaL3OghAqFKjiQYFxh3aatsazjKQXTbkpLjZ2tMWd/ZB+ c1uFKPfN7l0TlkteiZ4rDvfP3qskQAWP9dxzvtak9YA9Mpkm5BpXoFTb81Ls7Xargby8 ACOfF8AVx4ag19ArxIF24+RVo3Yh/AOFjtThCOHoYKyGY9ixBf4bm9ykRvsx6Cms8lDS hEZ2B5T0/An5/8tBSEpMnATrxl2jxZkPnC+mZKPbg51eEESNXIjoOlj5C/x8iNcRMRXj 8ng/V9Mm6iqkkOyO/7fuhN2LgsaWqlAFlfTC2A/VXT6pDk//qkxi0oXmoaFDXSI8lp5O hISA== 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=Fxc6M49wsiZtuAiZJk8Hxt8gV/1ixSfY+RSkangwfeM=; fh=5n5b5+XOwLgGNDePhvfXysty56rnkWOs9jaHEODdVeE=; b=dkQ7Ye8C5KCzGdHVzaLTIlkV93AhBOKRJWPTRRObFLaMk/+eKU17dp8d07Uetkppd3 TQ2DKrt8QILBh0sgCdUJDxY+Snb4fnxb6Ce2TsbEtwMAHmGvwoEJr4kNSZWhHBXiZ26S K5cRTAgZWLakY9eeIntjBvf/JoaVs3Uwj4x20KmNAuco1eAfGgKnS/i1V7M9qzxVibNl VXl5kP8HNUOyT/6xKR54JWU9LRpI6fAOaNv4NvVsd7cP96drpzumfthWhCxZ52pYgubI M6uwOEqrSrxSsOkk4d10I9MAsytQKZD8tH7rIi415RSbJf+PIw48pVtINHM0g+4c5MjN v9yw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=IkyvnIde; 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-40273-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-40273-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id s17-20020a63ff51000000b005d67007b43dsi1312722pgk.571.2024.01.26.07.44.58 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jan 2024 07:44:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-40273-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=IkyvnIde; 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-40273-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-40273-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 5AD6AB245E7 for <ouuuleilei@gmail.com>; Fri, 26 Jan 2024 15:26:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 91B701CF94; Fri, 26 Jan 2024 15:25:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="IkyvnIde" Received: from out-178.mta1.migadu.com (out-178.mta1.migadu.com [95.215.58.178]) (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 E9AA51E873 for <linux-kernel@vger.kernel.org>; Fri, 26 Jan 2024 15:25:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.178 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706282735; cv=none; b=rHfJ5/p0Hd/rNk43YEeAqA1Skq7vHNaj2W+GCZ78JZoXuyA97nYSQShyrY3D9QAIdUgage1GtUFVMLt5KiBDC6SHDpp0kgYHjkfeM2q8w2JXYcRkp/JlC9VmHH1oVKNuzUHAB8WU+IvTlNL/GSqqwKOLM8qJm5KGlwjewnnSpu0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706282735; c=relaxed/simple; bh=nRdDqIo0CuuDkPFpmOy7jAUoA1VsUwtHB9YZhdW7xbg=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=FIClnCYtE2AFBosulzS72LwJKM4IDRni/NGxHV3jIuu1mm38z7gueFF+/a6OxSRYZ+DsFebxVZV9UkFv2VID6mLHZMKdp+tqw98qQ/5JhaVa68ySlKTjsRkyI4miyhgFnbgo7pHdcGjgUnTdeV6mWEA25ltfLpyFJMcPVi1ewyA= 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=IkyvnIde; arc=none smtp.client-ip=95.215.58.178 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=1706282732; 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=Fxc6M49wsiZtuAiZJk8Hxt8gV/1ixSfY+RSkangwfeM=; b=IkyvnIdeEAXzyNoF0LqdZSDTbiTOQSu5etCNgZoKti/tjJbcin7DkJcC3ohdXGZT0Tnwyh /g1l+hlYRjpoHgsQS3F7EjYdzCdbyPl6t77EACOC7usJara6gjWSefTrR2k8x+WlfEOi3s WjM+WuvVeiatPmm6FNEI9O1LnuQ1/Ow= 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 v5 5/7] hugetlb: have CONFIG_HUGETLBFS select CONFIG_PADATA Date: Fri, 26 Jan 2024 23:24:09 +0800 Message-Id: <20240126152411.1238072-6-gang.li@linux.dev> In-Reply-To: <20240126152411.1238072-1-gang.li@linux.dev> References: <20240126152411.1238072-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: 1789168345708454914 X-GMAIL-MSGID: 1789168345708454914 |
Series |
hugetlb: parallelize hugetlb page init on boot
|
|
Commit Message
Gang Li
Jan. 26, 2024, 3:24 p.m. UTC
Allow hugetlb use padata_do_multithreaded for parallel initialization. Select CONFIG_PADATA in this case. Signed-off-by: Gang Li <ligang.bdlg@bytedance.com> 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 ea2f77446080e..3abc107ab2fbd 100644 --- a/fs/Kconfig +++ b/fs/Kconfig @@ -261,6 +261,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