Received: by 2002:a05:7412:f584:b0:e2:908c:2ebd with SMTP id eh4csp1942801rdb; Tue, 5 Sep 2023 09:24:28 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEKxdrpYENTPGR63zjIdRMv9rzZyWHAuHV3NAjLkXD+o9tRVr3WMO7EUQNq0SV/f09MP0qd X-Received: by 2002:a05:6512:758:b0:500:8f66:5941 with SMTP id c24-20020a056512075800b005008f665941mr221621lfs.50.1693931067889; Tue, 05 Sep 2023 09:24:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693931067; cv=none; d=google.com; s=arc-20160816; b=qzcuuuMkgNUdkX4VqACrX4buCE5ftUjbCtAQ9eSOGEnrffAQHsbbBZWwH4mS3dMF7T szbil/qgWb+CFlNOxBFDxgXvGqwuT8RcoSyfrLCnuhHF5rvK//O5A2ze/HFZs4QaDvXP 8X7b46rKFDqi9bbZqF2Sag0+YiPjv1qPF3io3EYb5ac88it9LqZlyijE9I/tjKKg62G+ ctSe7LtPjwgspF+VKnN+Rp+a+3jCWxNmnlcAxAp+D+HTCEb4zN27O1SFFNBwdzyvvTNO bn6J21zGeCZ48r+zdHz/G6VLbkFq1MtN2l7NOOwaILrNGl97l8v/+FaSXzGiDQ7uqfjP ZSHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id; bh=Z448WuahaAG3VvooKMocKYLIZ6+2XSbgYQv2i/GiGKY=; fh=qFTULd/aIQAIaL+BPIME+0by2N1Y9Tpn6FmwwqaG0Hg=; b=yi5ZxU2aEGa20abc6gFGlYMAF6ZCWegxSgrcr73zht+jAyxDyoqLxWUpTruM2SZkWD QKVkbRenH70d3K/JuFRXDL7xZAjGullV/lMafj14xRYjjbo5m9a7ge2kkV33KhzrYR35 UL3Vr9VJ6W8+3iSMz2VUnUWxSbrTbx/KodoBIrGXsqqR9jR2sFSc3FjKq4/gIWkIVIlg lnaRBRDepknN2xzK8UPlTqjK/YqXLqbmsvtT9irvu+RFw5XmTcCS/SIsFenuoeu/N9uq jR0MXgkzWIHYNUEnP6fSt7JNlZQ60cE6N4aiVw5x0xzPARIdX2Duqd7tYqbTT4SLprAT nmxw== 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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ty21-20020a170907c71500b0099bca8453f0si7361230ejc.764.2023.09.05.09.24.06; Tue, 05 Sep 2023 09:24:27 -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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352385AbjIDG6n (ORCPT + 82 others); Mon, 4 Sep 2023 02:58:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345038AbjIDG6n (ORCPT ); Mon, 4 Sep 2023 02:58:43 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D053F11A for ; Sun, 3 Sep 2023 23:58:39 -0700 (PDT) Received: from kwepemm600003.china.huawei.com (unknown [172.30.72.56]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4RfKBn683PzNmNM; Mon, 4 Sep 2023 14:54:57 +0800 (CST) Received: from [10.67.109.150] (10.67.109.150) by kwepemm600003.china.huawei.com (7.193.23.202) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.31; Mon, 4 Sep 2023 14:58:36 +0800 Message-ID: <0a324e7d-2edc-0dda-d902-087e90191525@huawei.com> Date: Mon, 4 Sep 2023 14:58:36 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2] crypto: Fix hungtask for PADATA_RESET To: Steffen Klassert , "Guozihua (Scott)" CC: Herbert Xu , Daniel Jordan , "David S . Miller" , References: <20230823073047.1515137-1-lujialin4@huawei.com> Content-Language: en-US From: Lu Jialin In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.109.150] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To kwepemm600003.china.huawei.com (7.193.23.202) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, 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 Thanks for your suggestion. I will update the patch and remove retry in v3. On 2023/9/4 13:40, Steffen Klassert wrote: > 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. >