Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp2568762rdh; Wed, 27 Sep 2023 06:38:51 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE6qEn27BmnyNe6JR6FV1uKlzKvHuvb3wfZE77PwYaiaghI63cUE3fN8zMromxmA+MrNK5t X-Received: by 2002:a54:4390:0:b0:3af:4f82:2337 with SMTP id u16-20020a544390000000b003af4f822337mr2133549oiv.32.1695821931017; Wed, 27 Sep 2023 06:38:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695821930; cv=none; d=google.com; s=arc-20160816; b=yKnOAKQDOfzChn0eo2XIRJCsbqZllbTG3u93JD0bqVOEMBbPQ0ol3dOefASqMUm8mW 1XYULhxhCJJ+41VlJGQgrZGI7ZMGDs7VNfQzeP6iad7S7/pnQrGTHpszlIeSvwXQhDiR qzsZAmgzHxLWAz4tTitVuq1kmtPkoaFEahGGTvS+asYkDPsx6xECITLRy0f5VrEcWb6t 6HUCJC6BZoZxXwtwJjXcqUQYTBbYbLWIsJd679nqY3FFfYfDQ7zFolyrHT94243i2Pjg PuQ4v+E0eY1cM4V8UbGrKqaUOiZyEtHVe0RLl7BmcTnON8JIn5HvN6hcwadZCjOQjxzy qbxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date; bh=9YYcLlzqMaTa5+2WNac7Ha3pb4oiAbocCCyc8uU+NV0=; fh=7F+ruHH5QcOTmRba7j1bGKOB4p1lK5yntKtecISCuVs=; b=mbHO/YFvw64od1bSHo+OgUlSU+0nj/0EqSCUaAEpp+XONdIGGCdaQe66W3meJnchQ/ RENXfrVW9fQUve6ZJYUxqfYmAYz8tSAnCf6S2rOuOpUKPWk8JtaMc9KVUxNf6oVgvyIA DBBH22sFNTWNtI8gQ1lmp8Fn10Ea4fY+Gh7U7k6gD6c9FBPSV76KB39uP8wHaT2SqkeK KeAdUMDTqxCVOAocyBGBlMJRWwN5TswGNQLIFV5QMrjA14XcHQYDU4RZo1dpSc6BhVEI xXzG+3D2V9qIIUEXkUhe33hil/xGfk9lbapHmGtlDERBGCS6t6VNQN9MNQRLP1/f4TnT XV4Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id a22-20020a63cd56000000b00577516d9a1esi15643966pgj.172.2023.09.27.06.38.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 06:38:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id DA2338051ABB; Wed, 27 Sep 2023 06:26:23 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231921AbjI0N0R (ORCPT + 99 others); Wed, 27 Sep 2023 09:26:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54692 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231954AbjI0N0L (ORCPT ); Wed, 27 Sep 2023 09:26:11 -0400 Received: from wxsgout04.xfusion.com (wxsgout03.xfusion.com [36.139.52.80]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79BBA10A; Wed, 27 Sep 2023 06:26:08 -0700 (PDT) Received: from wuxshcsitd00600.xfusion.com (unknown [10.32.133.213]) by wxsgout04.xfusion.com (SkyGuard) with ESMTPS id 4Rwcky6sGqzB0JRS; Wed, 27 Sep 2023 21:23:54 +0800 (CST) Received: from localhost (10.82.147.3) by wuxshcsitd00600.xfusion.com (10.32.133.213) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Wed, 27 Sep 2023 21:25:55 +0800 Date: Wed, 27 Sep 2023 21:25:54 +0800 From: Wang Jinchao To: Steffen Klassert , Daniel Jordan , , CC: Subject: Issue: Can padata avoid dealing with CPU-related operations? Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline X-Originating-IP: [10.82.147.3] X-ClientProxiedBy: wuxshcsitd00601.xfusion.com (10.32.135.241) To wuxshcsitd00600.xfusion.com (10.32.133.213) X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Wed, 27 Sep 2023 06:26:24 -0700 (PDT) Hello, I have a few questions about the padata code I've been studying recently: - Why does padata use the WQ_UNBOUND attribute of the workqueue? Because I've noticed a significant maintenance cost related to CPUs. Are there any specific benefits? - In what scenarios is it necessary to specify a CPU for serial execution, or is ensuring the order sufficient? In fact, the two questions can be summarized into one: Is it possible to avoid handling CPU-related operations to simplify the code logic? Thanks.