Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2AAFBAD; Fri, 8 Dec 2023 04:18:14 -0800 (PST) Received: from kwepemi100025.china.huawei.com (unknown [172.30.72.55]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4Smqss6lqGzsRwD; Fri, 8 Dec 2023 20:18:09 +0800 (CST) Received: from dggpemm500006.china.huawei.com (7.185.36.236) by kwepemi100025.china.huawei.com (7.221.188.158) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Fri, 8 Dec 2023 20:18:11 +0800 Received: from dggpemm500006.china.huawei.com ([7.185.36.236]) by dggpemm500006.china.huawei.com ([7.185.36.236]) with mapi id 15.01.2507.035; Fri, 8 Dec 2023 20:18:10 +0800 From: "Gonglei (Arei)" To: Herbert Xu CC: "linux-crypto@vger.kernel.org" , "Michael S. Tsirkin" , Jason Wang , "virtualization@lists.linux-foundation.org" , "linux-kernel@vger.kernel.org" , wangyangxin , "Halil Pasic" Subject: RE: [PATCH v2] crypto: virtio-crypto: Handle dataq logic with tasklet Thread-Topic: [PATCH v2] crypto: virtio-crypto: Handle dataq logic with tasklet Thread-Index: AdooOneOWI65hKIST2yjTeZdqptiyQBCQ+6AACMBjtA= Date: Fri, 8 Dec 2023 12:18:10 +0000 Message-ID: <70ea58a0776e4ba2a38658047d188688@huawei.com> References: In-Reply-To: Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-CFilter-Loop: Reflected > -----Original Message----- > From: Herbert Xu [mailto:herbert@gondor.apana.org.au] > Sent: Friday, December 8, 2023 11:28 AM > To: Gonglei (Arei) > Cc: linux-crypto@vger.kernel.org; Michael S. Tsirkin ; Ja= son > Wang ; virtualization@lists.linux-foundation.org; > linux-kernel@vger.kernel.org; wangyangxin ; > Halil Pasic > Subject: Re: [PATCH v2] crypto: virtio-crypto: Handle dataq logic with ta= sklet >=20 > On Wed, Dec 06, 2023 at 11:52:51AM +0000, Gonglei (Arei) wrote: > > Doing ipsec produces a spinlock recursion warning. > > This is due to crypto_finalize_request() being called in the upper half= . > > Move virtual data queue processing of virtio-crypto driver to tasklet. > > > > Fixes: dbaf0624ffa5 ("crypto: add virtio-crypto driver") > > Reported-by: Halil Pasic > > Signed-off-by: wangyangxin > > Signed-off-by: Gonglei > > --- > > v2: calling tasklet_kill() in virtcrypto_remove(), thanks for MST. > > > > drivers/crypto/virtio/virtio_crypto_common.h | 2 ++ > > drivers/crypto/virtio/virtio_crypto_core.c | 26 > ++++++++++++++++---------- > > 2 files changed, 18 insertions(+), 10 deletions(-) >=20 > Your patch has already been merged. So please send this as an incrementa= l > patch. >=20 OK. No problem.=20 Regards, -Gonglei > Thanks, > -- > Email: Herbert Xu Home Page: > http://gondor.apana.org.au/~herbert/ > PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt