From mboxrd@z Thu Jan 1 00:00:00 1970 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 E16E8C4829B for ; Sat, 10 Feb 2024 02:46:18 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 3C6696B0075; Fri, 9 Feb 2024 21:46:18 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 376ED6B0078; Fri, 9 Feb 2024 21:46:18 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 265546B007D; Fri, 9 Feb 2024 21:46:18 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 162666B0075 for ; Fri, 9 Feb 2024 21:46:18 -0500 (EST) Received: from smtpin12.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id DB24C1C1082 for ; Sat, 10 Feb 2024 02:46:17 +0000 (UTC) X-FDA: 81774355194.12.C7CA477 Received: from out-172.mta0.migadu.com (out-172.mta0.migadu.com [91.218.175.172]) by imf28.hostedemail.com (Postfix) with ESMTP id 0CDCEC0009 for ; Sat, 10 Feb 2024 02:46:14 +0000 (UTC) Authentication-Results: imf28.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=oFqhRojE; spf=pass (imf28.hostedemail.com: domain of muchun.song@linux.dev designates 91.218.175.172 as permitted sender) smtp.mailfrom=muchun.song@linux.dev; dmarc=pass (policy=none) header.from=linux.dev ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1707533175; 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:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=t8R6ekevAs5LUra8NX8imgqzdPvZELgy7Sn2syntlWU=; b=GCN2LGZb9q8px2fKUhV/a0JWbrmRIPoznqIfhN4cJvbbcia/AKYhrvX2TcF4Vj1O6WXAiH oPxv25bWTTnN8QLjtnsEzS5OnmpXvlpDBmPbXihfILo4nfOejZHBn+dl+6iOYiJxt8QnG3 oYWVxm3I7T6UFnE0zs18TLt2ijci3g8= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1707533175; a=rsa-sha256; cv=none; b=yXhHmWNGB3FgTHZlP6DQGerHeRt9r8Rx34D0vBKsut5/0pO9vRbZXgYaMm1dXb9tj/tH24 SPKzZULFpdUsMFB4ygvDTVfNJ7if2ZmM9CYju9uBkPV2RTmo2d1LglkgPuya1pqhWc650m 1ldncStuZBpPIYyMTQtpqn6OsQsv+JE= ARC-Authentication-Results: i=1; imf28.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=oFqhRojE; spf=pass (imf28.hostedemail.com: domain of muchun.song@linux.dev designates 91.218.175.172 as permitted sender) smtp.mailfrom=muchun.song@linux.dev; dmarc=pass (policy=none) header.from=linux.dev Content-Type: text/plain; charset=utf-8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1707533172; h=from:from: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:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=t8R6ekevAs5LUra8NX8imgqzdPvZELgy7Sn2syntlWU=; b=oFqhRojEcCa+hyDQGgTk14lRssBFMFySGzTqvdSqSpeAhRiF5RHgRkzl84vpveesZuQ0ER uZzGGl5F5sbX6kGqfTizJMOSWmmYPcF97yHVZdHd2xc42IPl4RrPhCl9Zdu1UOHBq//N3U zrdsj8xHdrJS3blja0q0liYhiSuLp5A= Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 Subject: Re: [PATCH 1/1] hugetlb: fix CONFIG_PADATA dependency for non-SMP system X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Muchun Song In-Reply-To: <86B96EE5-A51C-4F06-BB18-0B3B12DBCCEC@linux.dev> Cc: Gang Li , Andrew Morton , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Randy Dunlap , kernel test robot Date: Sat, 10 Feb 2024 10:45:35 +0800 Message-Id: <2B59E906-4CC9-4926-A893-4954587D3BCD@linux.dev> References: <86B96EE5-A51C-4F06-BB18-0B3B12DBCCEC@linux.dev> To: Gang Li , jane.chu@oracle.com, Daniel Jordan , steffen.klassert@secunet.com X-Migadu-Flow: FLOW_OUT X-Stat-Signature: aahfgu1r9rt8idmzode37gqmwr5agim1 X-Rspamd-Server: rspam10 X-Rspamd-Queue-Id: 0CDCEC0009 X-Rspam-User: X-HE-Tag: 1707533174-353942 X-HE-Meta: U2FsdGVkX19v+YjnzOSEspvsod4OlTjHlRR+a0Ar9ewxMqohog5VkN/Vox4umtHvdjWzFK3wXeoYHmOoOLolmovruWCSASrNDx9wJ/xwAegrfzvqsccNRY577WnsWIfZxsxEiIF7QZAZd5s5botqxauoTwQaAyAr/UI11Fdwbb7jfCn17213oK5RpFdJPjqMkSjdihyHjSzvfGUZvZULGIT2nC9zwtLAdStzJJ86r92BVhlukiVma/uwbTj4eRSBzcRqyDcCIPBmkyScD1VPhrHxJhxxPbZVoAnG5CqYgRgwnZVStij1i8QUjXw5ojq971gqZ45Vl+gnufL22vVT7D1ts9OeM9WMg+EnVKOdFv5DlseOEqQ7xUW9k86Fn4UKEvHHjShl/T2b71pTfDHA0CRhbKiPikpj91GNdHvfWvHNuSLD/OMlisBN91SU3e/7uBRmr2xhVOxixmLElYR2SV+dhgzs4PJRMWIh8nfPqHMt9rlv2hVzjh30/eOvIIQ8fuq5FAYrPB/uMlpnHFLX7Vrl5Mpq0aFohyV2zOoI3stdY9DC+CpsI+xKBbsMUsDYyHcfylT3zJIbfkNkBrCIdzUix8pHhEPB8wSW2oGOc/XQFK6TGxRmiYRI5KpRxA4+ohDLOU5WlcIUG/5YkMa4kpnBOSnXepD1Ga9anzojkxp/Mk3zvnYcMDpPaKmW3X/8/xS4lGq+DYeis8IuPwrIhDnuy4rj8nz9tMcF4wiqPbSIdTMru6L4FV63WOhjjHui4pmo22fCQzYM+Pmm/+bTEPS1LCMvL8grTerZ3jsHVXSxRSQraB3Z3cUTYmqPGFdY/Wu+C8sVWIrVnJlh7YH+I5cChsKfx8Bg5I/ZCUwFMN3t3EGMzlYkRKb9M34CC4J3FnJFt3f8Ho26QBnm2tb+GUiL7QaEGx2SJXEHTbS3l3K+J520M/L2W6/dbKcrTcLX0BKm/qtROQ6H2F71S2c ooBGrgIA QKFCR/N4k2g5ncFjG/94TZOi/q6KHfE34LTeOYVxXQpLq7Glu60sJsBjQLLMlu8p8oyRV8WPtRs7LsGmuwFCGL3ibGIW3qv0GotODaCfegt8TM+Hgn68rgg4f/V81F5P6SR6ayCK5xkkBy+NaunJ8GXSGn/LN0kzL3qWf 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: List-Subscribe: List-Unsubscribe: CC Jane, Daniel Jordan, Steffen as well in this thread. > On Feb 8, 2024, at 10:39, Muchun Song wrote: > =EF=BB=BF >=20 >> On Feb 5, 2024, at 16:08, Gang Li wrote: >>=20 >> =EF=BB=BFOn 2024/2/5 15:37, Muchun Song wrote: >>> Actually, I did not get it. Why the above code cannot work? The above >>> code already make it serialized in one call, right? What do I miss here?= >>> Thanks. >>=20 >> PADATA consists of two distinct functionality: >>=20 >> One part is `padata_do_multithreaded`, which disregards >> order and simply divides tasks into several groups for parallel >> execution. My patch use `padata_do_multithreaded`. >=20 > OK. Since all users of PADATA of non-SMP case currently only use padata_do= _multithreaded, it=E2=80=99s possible and easy to implement a variant of tha= t in non-SMP case. It is not necessary to implement another functionality un= less the only user of crypto/pcrypt.c does not depend on SMP in the future, a= t least now it=E2=80=99s dependent on SMP. >=20 > Thanks. >=20 >>=20 >> The other part is composed of a set of APIs that, while handling data in >> an out-of-order parallel manner, can eventually return the data with >> ordered sequence. Only `crypto/pcrypt.c` use them. I guess these APIs >> are designed specifically for `crypto/pcrypt.c`. >> ``` >> padata_alloc >> padata_alloc_shell >> padata_do_parallel >> padata_do_serial >> padata_free_shell >> padata_free >> ```