Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp2401843imi; Sun, 24 Jul 2022 19:02:19 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sylYtg6bBAc8pDT8vQqLfOigUr5GPv5y9naVMXWPEbYJceB6P161qXa/ZdIU/cL3EdUjr+ X-Received: by 2002:a17:902:a618:b0:16c:abb9:d7a6 with SMTP id u24-20020a170902a61800b0016cabb9d7a6mr10134313plq.119.1658714539278; Sun, 24 Jul 2022 19:02:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658714539; cv=none; d=google.com; s=arc-20160816; b=gyly1tRj8nc6vUV9fZoB8iaZGZVhXIrFa5nfVL2T3S+Wk1A8oM7uUCZV/HqHcBv5dn RGaZNhjU6SCYYgb7zgkzYJL6b9im8aOCdsffUsIx/yI+Acp9U65NVlYKNtkwCemdxA++ x25oGWiP83pnsAjJYXc7D/kQ4tDCUnz7rrrp9VRV+HPeDRRnbHowopR/pngki97I3ney d3KhkVORMVQXaymNQufB7XSXKI2BlHKZQrdnFz29CtGx055tQMIaLbEr0/Z8FeFi4di9 rcmYBKwkibVFJgBBp7bSeVIdyVBY575gY1ES/nfbRJnxtEDzYUjGlRSfBuX2QDt0zSfe ox6A== 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=qpWsSTkka8UaRf6oLcv6TVI4ByZ2xSHrb4BExvsqfb0=; b=CHBxxUU+A9tQKlKn6MGuYdUtIEuA73iUTxC3wnge5+kPTSxAQFzTnmQsHmdlUuUOIE 4o7+3BbecqeI0XYLYh5ncpa9riHa1337P3adEyju5FB8XyZJltBtG7reVNh7OHa2D8XN GwEW7tjv8nH0hHQ0uTfPKJLSv5cbDpJ9JDMfVUI4jI7ODq05W82ObFvH5vN/JsrC847b GhIWKBr76r0DZTg7ugp1uDL+xSQ6jFBXUQcAzaNT7lamBFM6x+F7TMolp2TyQiZ1cdnK PVeQZfT6fdcuY1prTwtr+VP4mEpqvVcCLD9dY1sh66KGpOGwgIo34LiUWCsU0QrkeEYG UrcQ== 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 d64-20020a636843000000b0041a861c0de9si11381452pgc.695.2022.07.24.19.01.52; Sun, 24 Jul 2022 19:02:19 -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 S230251AbiGYB5V (ORCPT + 99 others); Sun, 24 Jul 2022 21:57:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229745AbiGYB5U (ORCPT ); Sun, 24 Jul 2022 21:57:20 -0400 Received: from fornost.hmeau.com (helcar.hmeau.com [216.24.177.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7CE8BD63; Sun, 24 Jul 2022 18:57:19 -0700 (PDT) Received: from gwarestrin.arnor.me.apana.org.au ([192.168.103.7]) by fornost.hmeau.com with smtp (Exim 4.94.2 #2 (Debian)) id 1oFnLN-0046n1-0C; Mon, 25 Jul 2022 11:57:14 +1000 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Mon, 25 Jul 2022 09:57:13 +0800 Date: Mon, 25 Jul 2022 09:57:13 +0800 From: Herbert Xu To: Zhengchao Shao Cc: linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, davem@davemloft.net, javier.martin@vista-silicon.com, weiyongjun1@huawei.com, yuehaibing@huawei.com Subject: Re: [PATCH v2] crypto: sahara - don't sleep when in softirq Message-ID: References: <20220725011324.383031-1-shaozhengchao@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220725011324.383031-1-shaozhengchao@huawei.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 Mon, Jul 25, 2022 at 09:13:24AM +0800, Zhengchao Shao wrote: > Function of sahara_aes_crypt maybe could be called by function > of crypto_skcipher_encrypt during the rx softirq, so it is not > allowed to use mutex lock. > > Signed-off-by: Zhengchao Shao > --- > This patch is not yet tested, compiled only. > --- > drivers/crypto/sahara.c | 18 +++++++++--------- > 1 file changed, 9 insertions(+), 9 deletions(-) > > diff --git a/drivers/crypto/sahara.c b/drivers/crypto/sahara.c > index 457084b344c1..c978d16dc609 100644 > --- a/drivers/crypto/sahara.c > +++ b/drivers/crypto/sahara.c > @@ -26,7 +26,7 @@ > #include > #include > #include > -#include > +#include > #include > #include > #include Please keep the alphabetical order. Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt