Received: by 2002:a05:7412:f584:b0:e2:908c:2ebd with SMTP id eh4csp1404163rdb; Mon, 4 Sep 2023 12:44:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFIGTIib3N0dk4ZOkVplebylLxtGHk8rTzLd/tHdDatK3kurd4aJUe519ajZujfMRoqGlyV X-Received: by 2002:a9d:6d04:0:b0:6bc:a054:c569 with SMTP id o4-20020a9d6d04000000b006bca054c569mr12063893otp.38.1693856697620; Mon, 04 Sep 2023 12:44:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693856697; cv=none; d=google.com; s=arc-20160816; b=ofsDbrghDcOSik8aQPmxPfiiFFinDFOIJ+N449FFCe7mkU1o2ZC6E1fZpcy3tjCINz 3iJpWwtPJwdI5A+0alq0q18vWhra6zT0j7ngtsoY49GaAlnuVCjUPAWbLGdWTY/PMHZH m59/PHxNgaGCw8idjUs7g0FXAv+BXW9NqGosdkdLFEdDXFkPNksqowcBmJgr5MXvrJ5K X18Dkt6zRe9u2yjSWgvcOM3+mlWRwYXQOZLS43lLUZwWbK2m5jMYfoeEo1v9a8y8A0de 8xedOofDaQSNXVeDJL3RrUst0h5m98nyzoHHICura22V8aXtSQvGNK1mW3/IV2L+ujtQ Aajg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=dl3zQFgpvlk84yxfVpnBUwfP0E8jxvHrVc/BPdYLLBc=; fh=MO7TKicic5Au7CDj8i8dJNyQzxcgRYMxRnAHsnD1ZOQ=; b=JDEjX7p/CKzqtISo8SfbA1S5f9vKLOMat3OUqrx4EEGV4Sgp5/BpmOBFdYU751dXn/ 1AjjAs51XAXKXW3+u5FhrC37eHGR64/6+2NVCM+uor6c29m7kcOunDxDFbceQi6SYTEa NelV4JCI78KsjopxdTBuKMw/rxVfnCaldh9a8eZrK38iK7FNo5VOHtuyCcRy0cXe2DPw iAHHR+OUPbCEKv3WNidW/8IrwAYafBIDvPl/6e4HVT5miYS8o04J0lPu4KAqlfR2y63U 4dzYJRiXoDUnAdMG4qnIlQpPId5B3V24A0IrQcrq+oI5FWoSdy9IMVnP/TmOTZU+mZh6 QJ+A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bb23-20020a17090b009700b0026b22aaf29bsi10689025pjb.146.2023.09.04.12.44.30; Mon, 04 Sep 2023 12:44:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349072AbjIDFkd (ORCPT + 99 others); Mon, 4 Sep 2023 01:40:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232830AbjIDFkc (ORCPT ); Mon, 4 Sep 2023 01:40:32 -0400 Received: from a.mx.secunet.com (a.mx.secunet.com [62.96.220.36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 46F82B6 for ; Sun, 3 Sep 2023 22:40:29 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by a.mx.secunet.com (Postfix) with ESMTP id 2742E204B4; Mon, 4 Sep 2023 07:40:27 +0200 (CEST) X-Virus-Scanned: by secunet Received: from a.mx.secunet.com ([127.0.0.1]) by localhost (a.mx.secunet.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wEgNc1B9oJb9; Mon, 4 Sep 2023 07:40:26 +0200 (CEST) Received: from mailout2.secunet.com (mailout2.secunet.com [62.96.220.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by a.mx.secunet.com (Postfix) with ESMTPS id 8F11B201D5; Mon, 4 Sep 2023 07:40:26 +0200 (CEST) Received: from cas-essen-01.secunet.de (unknown [10.53.40.201]) by mailout2.secunet.com (Postfix) with ESMTP id 8687F80004A; Mon, 4 Sep 2023 07:40:26 +0200 (CEST) Received: from mbx-essen-01.secunet.de (10.53.40.197) by cas-essen-01.secunet.de (10.53.40.201) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.32; Mon, 4 Sep 2023 07:40:26 +0200 Received: from gauss2.secunet.de (10.182.7.193) by mbx-essen-01.secunet.de (10.53.40.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.32; Mon, 4 Sep 2023 07:40:26 +0200 Received: by gauss2.secunet.de (Postfix, from userid 1000) id CCA663182A93; Mon, 4 Sep 2023 07:40:25 +0200 (CEST) Date: Mon, 4 Sep 2023 07:40:25 +0200 From: Steffen Klassert To: "Guozihua (Scott)" CC: Herbert Xu , Lu Jialin , Daniel Jordan , "David S . Miller" , Subject: Re: [PATCH v2] crypto: Fix hungtask for PADATA_RESET Message-ID: References: <20230823073047.1515137-1-lujialin4@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: X-ClientProxiedBy: cas-essen-01.secunet.de (10.53.40.201) To mbx-essen-01.secunet.de (10.53.40.197) X-EXCLAIMER-MD-CONFIG: 2c86f778-e09b-4440-8b15-867914633a10 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Fri, Sep 01, 2023 at 10:28:08AM +0800, Guozihua (Scott) wrote: > On 2023/8/23 17:28, Herbert Xu wrote: > > On Wed, Aug 23, 2023 at 07:30:47AM +0000, Lu Jialin wrote: > >> > >> In order to resolve the problem, we retry at most 5 times when > >> padata_do_parallel return -EBUSY. For more than 5 times, we replace the > >> return err -EBUSY with -EAGAIN, which means parallel_data is changing, and > >> the caller should call it again. > > > > Steffen, should we retry this at all? Or should it just fail as it > > did before? > > > > Thanks, > > It should be fine if we don't retry and just fail with -EAGAIN and let > caller handles it. It should not break the meaning of the error code. Just failing without a retry should be ok.