Message ID | 20240222140422.393911-7-gang.li@linux.dev |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-76667-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:aa16:b0:108:e6aa:91d0 with SMTP id by22csp273832dyb; Thu, 22 Feb 2024 06:07:12 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW8IX27nYLLco4nPVecheyJNwxyI69qQ5JBCWrXwvXhXO6KcRPBP8IR+1Xgb28VG4tLBcpFvJ9vHrNI31vhvavdAu2gYA== X-Google-Smtp-Source: AGHT+IFpFQoeoMuUqyvSm1ZKhRDREERCGP2W2gfzF7KmPdxZ/i/zCJj5YLtr9aToFtTwrD1QRX48 X-Received: by 2002:a05:6214:20ad:b0:68f:309d:986 with SMTP id 13-20020a05621420ad00b0068f309d0986mr618077qvd.17.1708610832560; Thu, 22 Feb 2024 06:07:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708610832; cv=pass; d=google.com; s=arc-20160816; b=abaPoFLa8GQ1mIpvNYWJHglgiNBY7ReKNkBrn3MXlpB7wdx7gCy2frQYlyRaBIaoxL 1dC4TyBb8XNdnkD7fxNAmC2DhrUEfNF0QJ0WWDhvnGs4adTcX9v5VwfSS5AKM83744+l LcQUrDSgUOVfAaQfAAQFBCgxOllHZ0seXunCZYfU1FLiltSDZEmiw/MnfIGuOY5HTx5Q uzb4wXwtXp2koG36JQXmURBFbmSZ7ylhx8jlHg7qewHmfEQlH2/kpdk9E6ZdAKnOn61e f6rEngHYph1fPfikQ/OYBLxbU3baZYXgJEQehqLHHw206CmEYSWLrrhZOBIK3Qpai4wk 5Mwg== 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=gKGGJ4keOOfrl00iluvEDQ3Ty93zFU24V1EYV5CxVyE=; fh=yRWAnXCrDeo1JkXV9iUtee7xVlLig8radlX7vPmVxyI=; b=R8xSdo/0RlSv/dJ7Ysz310jdA5QQ+sGE5NaStzOBmtkYuc1CSuOpEJShEsXOG86prb rMZ+ZZzgS89SjOgzDdbXeIzN0Y8O8fxz+sTZ42Nj5X2/aS9uGsY+Bg6i2quRTRHmHOVb qDAZIEmelk/tMDHF/DJ1G8nfin0C6EP+1AgQ/siKSgipOzXsZC7cH7fR9WnubwQjxU4S 18C8m0bqLuEMCfn1+HuHjONxuxEf12le+N4nw4nUGuObIouaHYpjoR9SYvf29BYCL2zZ Zmr07hqseaYWz0+uhCtHv8zjN3GI5jzeU32+PRQIhn9Omb/6TLYh7VZvwTgF548ztd9Q cihw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b="qg/JjqKp"; 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-76667-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76667-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. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id h11-20020a0562140dab00b0068fb26a9f72si2490182qvh.447.2024.02.22.06.07.12 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 06:07:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-76667-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b="qg/JjqKp"; 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-76667-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76667-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 56FD01C25E80 for <ouuuleilei@gmail.com>; Thu, 22 Feb 2024 14:06:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C6A9E14D435; Thu, 22 Feb 2024 14:05:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="qg/JjqKp" Received: from out-171.mta0.migadu.com (out-171.mta0.migadu.com [91.218.175.171]) (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 AF5B914C5AF for <linux-kernel@vger.kernel.org>; Thu, 22 Feb 2024 14:05:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.171 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708610708; cv=none; b=XnVte5m/zxhnlxgpp8OI0FFo9rE4ZD951vtdNoW5VBHIbhJ6ivm//9hnzUWNZl0o1cpZO38ZYXvz5zYGETaj/cWPdR6K6cREc0i4k/iDZjorVKr0WAhlsd/iSfZ9zlzI7gS47eumDeXj07R/0agZaTxmr/Ww0gH2jtHyjxK1MoM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708610708; c=relaxed/simple; bh=R5MnQwc9t4v2E0fp8qGfSsi085XwCBGRqhTGk/VczIo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=ESO/7zax262KNBGzZ7VtwWk1XICtKULFYHW2J5b3y0KdmNJwPZA28vPM9Yy+iMjVXXzGu7mEp5SkGbCLBrgOh2BBI0cSEmPat4X24upnFDPlnd8/JWdKPDBhQqoL3Z1+PJlk+yinJVimOPBgoKANMhRw04x9OLbkeGs3bBkrDCI= 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=qg/JjqKp; arc=none smtp.client-ip=91.218.175.171 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=1708610704; 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=gKGGJ4keOOfrl00iluvEDQ3Ty93zFU24V1EYV5CxVyE=; b=qg/JjqKph94W1a8idl0Ardw/d1tXM/odKpkHBNYeJX6L3C8F1p+YAZQ9skiGNuOx7apSHg P50H5nQcpGnKjLptZs0X/vUJxmxyGb2wQzDUgVbKsnbaaN5OpGF0RgSBPk7VaTYu7ry88z y+/WrwgLKTRUrw1khfweAOXlhe62gqo= From: Gang Li <gang.li@linux.dev> To: Andrew Morton <akpm@linux-foundation.org> Cc: David Hildenbrand <david@redhat.com>, David Rientjes <rientjes@google.com>, Muchun Song <muchun.song@linux.dev>, Tim Chen <tim.c.chen@linux.intel.com>, Steffen Klassert <steffen.klassert@secunet.com>, Daniel Jordan <daniel.m.jordan@oracle.com>, Jane Chu <jane.chu@oracle.com>, "Paul E . McKenney" <paulmck@kernel.org>, Randy Dunlap <rdunlap@infradead.org>, linux-mm@kvack.org, linux-kernel@vger.kernel.org, ligang.bdlg@bytedance.com, Gang Li <gang.li@linux.dev> Subject: [PATCH v6 6/8] hugetlb: have CONFIG_HUGETLBFS select CONFIG_PADATA Date: Thu, 22 Feb 2024 22:04:19 +0800 Message-Id: <20240222140422.393911-7-gang.li@linux.dev> In-Reply-To: <20240222140422.393911-1-gang.li@linux.dev> References: <20240222140422.393911-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: 1791608312297046031 X-GMAIL-MSGID: 1791608312297046031 |
Series |
hugetlb: parallelize hugetlb page init on boot
|
|
Commit Message
Gang Li
Feb. 22, 2024, 2:04 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> Tested-by: Paul E. McKenney <paulmck@kernel.org> --- fs/Kconfig | 1 + 1 file changed, 1 insertion(+)
Comments
On Thu, Feb 22, 2024 at 10:04:19PM +0800, Gang Li wrote: > 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> > Tested-by: Paul E. McKenney <paulmck@kernel.org> Acked-by: Daniel Jordan <daniel.m.jordan@oracle.com> > --- > fs/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/fs/Kconfig b/fs/Kconfig > index 89fdbefd1075f..c0b9599bf8e3a 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 if SMP > help > hugetlbfs is a filesystem backing for HugeTLB pages, based on > ramfs. For architectures that support it, say Y here and read > -- > 2.20.1 >
diff --git a/fs/Kconfig b/fs/Kconfig index 89fdbefd1075f..c0b9599bf8e3a 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 if SMP help hugetlbfs is a filesystem backing for HugeTLB pages, based on ramfs. For architectures that support it, say Y here and read