Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp4367rdb; Wed, 7 Feb 2024 18:40:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IF6+wdtc49ePhpDrISrBuXzQwNLm9MGi3lw/W4hEenTtvJE7AUtYo/vxoME0U3FAElakHdF X-Received: by 2002:a05:620a:1720:b0:785:9fb8:7a1f with SMTP id az32-20020a05620a172000b007859fb87a1fmr3206105qkb.53.1707360002060; Wed, 07 Feb 2024 18:40:02 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707360002; cv=pass; d=google.com; s=arc-20160816; b=wZoDzAvUI0NARbudBvfmL+HYjy25yYjUlxWZ8WhWOHicjwY955YfmkD3+VY8hIVK+u pV2+kziZk/xB5lF/brL8i10XaY+/g5fLHtdJ2SiUjl/RVcDcLsaszUlKujszhTNH2CSD YFeN5oOHhfgJTCIQZ2SBiMzUqKs5EjbipyTzwjudlBvQjuJ4HoclkgdWzAUWBtc07TJ3 fr1PSksnZKCQmNpIUWlYqxXk7bfLPPz8Gml+Br6fpnVhUcKcXzNZCitE/yl8wjCfCv6C kq0zAquJG+l0gEzF4xU/LKRRM5rp3Da2tylpJ0CJE9xnAQSmY3PseHjMWJzWU47m+jfy DysQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:cc:date:message-id:subject:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:from:content-transfer-encoding :dkim-signature; bh=iAOsapMZT7WscB3KOtE0CbtJvWu7mUbIYn8/aPsdH1U=; fh=O2gBoH2N2QHt/5BmKhkeeyl1VkWXI12mr1QAzKdrkiE=; b=XnhWpbKIDcQzWqaXgDbsrkf1Wq1ZarIDEZW/sSGeAnTN2fqzbmrOB03dXeLB5xA/mD jCqeqhy88vkr1od3n3ca7DpjtL8poiwfBhnQV2YFmGOwRHkp8wCNFsY7KQBG/sfhXl7t YQgmvNAnVw8rQqIK6qV+s9WEC5b3p0rAQ1L4Wh6Nb8gq+Gk7D0RVd0sXmSvnfh8YH00U ehYJZVuPp3cZzab5nE0Z+74Lp48mt0MklU3aFXjKAgBoz6jXjS/tOd62ZNDN5jb+SDnZ B/cjbxl1BtxNcksiVhWr5NDF5OdXuaHeudVdDuIDNgy3bYrfXCJcMhlmTJONIk2yhlKO ZkIQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=Qy0b7OPZ; 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-57394-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57394-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev X-Forwarded-Encrypted: i=2; AJvYcCVVo+XKqFPCywg8sWRXs25yUEIEMrIiFlcICk70vDfjTGraPm8tGhFE6FXF2JMfXFTf9i9Z721jEc7RWSsjlqfF6DaRApft7xZlGGO8jA== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id c17-20020a05620a201100b0078552f53b80si2436686qka.50.2024.02.07.18.40.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Feb 2024 18:40:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-57394-linux.lists.archive=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=Qy0b7OPZ; 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-57394-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57394-linux.lists.archive=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 B6F151C22EBE for ; Thu, 8 Feb 2024 02:40:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1DF4B1D525; Thu, 8 Feb 2024 02:39:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="Qy0b7OPZ" Received: from out-189.mta1.migadu.com (out-189.mta1.migadu.com [95.215.58.189]) (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 2C6911D524 for ; Thu, 8 Feb 2024 02:39:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.189 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707359993; cv=none; b=uDxo1a2aLckqepjsmr7nbCadqG6I89a8zbfcGbldnzrUdBbgPLFfxsP1KvoezW4ZCUAp1j8zfav405lKjV5bRtwe28cgXc7P6eJbq6wpBtSA0xvdoWQueYY/Jww9YyzmozrDnFq92QkVyZflsbWlQlKRXYEZV34+JMXQ5F9Y/w0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707359993; c=relaxed/simple; bh=iAOsapMZT7WscB3KOtE0CbtJvWu7mUbIYn8/aPsdH1U=; h=Content-Type:From:Mime-Version:Subject:Message-Id:Date:Cc:To; b=lo3E8IqebZ9AHRMAoSasMHRE9nhR72T/g/bYeMSiTp4QQNXDPUjrHEvfcGlUUFYhnZf5ODWo3DxWfs3PkaDzFkneH5EcJTMdX6l2S0CL+EAuqkQrmZTTdOEHwUV7NY28VIsFhafbmo7+M418LdHwAm2l+zFbJbMcfMQ+MBzjL+Y= 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=Qy0b7OPZ; arc=none smtp.client-ip=95.215.58.189 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 Content-Type: text/plain; charset=utf-8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1707359989; 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; bh=iAOsapMZT7WscB3KOtE0CbtJvWu7mUbIYn8/aPsdH1U=; b=Qy0b7OPZXO/RA1651zuoBKcLO0Sr1tK05H98dZRQVNJHWeArnC7VjG6T+ZTPhcx+XIbkAp tOpxJrN69yEZ+CJtPC2f84KyGEXYa0LrP51+oDLXCUUe2WOwaP5DLeTEXDFq1N9uQi6OxV Rqf+tzkL14/7iGCRw83bvzuZ0AszKJE= Content-Transfer-Encoding: quoted-printable X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Muchun Song Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Subject: Re: [PATCH 1/1] hugetlb: fix CONFIG_PADATA dependency for non-SMP system Message-Id: <86B96EE5-A51C-4F06-BB18-0B3B12DBCCEC@linux.dev> Date: Thu, 8 Feb 2024 10:39:13 +0800 Cc: Gang Li , Andrew Morton , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Randy Dunlap , kernel test robot To: Gang Li X-Migadu-Flow: FLOW_OUT =EF=BB=BF > 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`. OK. Since all users of PADATA of non-SMP case currently only use padata_do_m= ultithreaded, it=E2=80=99s possible and easy to implement a variant of that i= n non-SMP case. It is not necessary to implement another functionality unles= s the only user of crypto/pcrypt.c does not depend on SMP in the future, at l= east now it=E2=80=99s dependent on SMP. Thanks. >=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 > ```