Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp2294609rdb; Fri, 8 Dec 2023 04:18:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IHNnTNcKYOD9wAqWi2BAQRohZlacDiPRPpErt00LWwJbG7Vu8WhltqSR33bZefMtVgu1zvT X-Received: by 2002:a17:902:e804:b0:1d0:ba40:b0e1 with SMTP id u4-20020a170902e80400b001d0ba40b0e1mr5227649plg.124.1702037915093; Fri, 08 Dec 2023 04:18:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702037915; cv=none; d=google.com; s=arc-20160816; b=u76Xgsduva9iLoNU1miTdizy43rnCQYsiP5o1ecJDEXhqpwqIHV+ooHzSqFz2pfe7N oIJX8tL2TxoWRSTYhXsWPzGyuHsBwghW3ETVeWPJEAMVWGCKN7aIx+LDEnyER3HuJrQt 74ZxkhhzL248FziEUGD8R7BR+A0gxxRS1oz0LS7zxKz2gkXWE82f8j7P0YqrjFD++IO0 ZLFpg22xg8fmg3QorOMUpruMiGC9oLBcK4PpOpltvx112pf+gfkYkbM97yfdKu25ZTik w8qBcQLFLFG25jKrMbMHtSGAueAswdgOVAR4F89TrNv+fGVThjmw56BoyujNVjhZkFQD EtrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=TS6mjkRj1Vx7PMOqJb8W+5aJnocfL5iwWbMuWCEKNc4=; fh=Chkm7yMqmQftlN3RECw1H78OHjJFT6Zi9H/ijnj+oO0=; b=adNVP8SbUrsF3MCQOrujVcNSM2irYWxJlQpkYCGaBvk9XT15rkWcKy/IITq+rUB3jp ELHkUPnWp8HglNXRWgk041lCsOjy5ZpDSsxevE1ZrqSSO2mKA12uY7MDZqaJL0fUFxW+ DCwIA4UQuMf17ZGMTEdogEVgdKWhlcUsAjhDL7LElwHydzeWQaK6c2WhihXH3YB/jyOM xtjPH4fm4sK9crFZlp5dSpuj2YA8YK8tfHT3FAp3wNev2hNRHcDqz/qw9pORYcZO+Dg8 e4c6QWcvgaN5HfDt/dg6MhqP+/0S9+DUpy3oBtiYql5MDFSnEZ9Di39RbeNd1wF1LOIV lUSw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id j9-20020a17090276c900b001d055315494si1499410plt.540.2023.12.08.04.18.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Dec 2023 04:18:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id A21E181A2044; Fri, 8 Dec 2023 04:18:26 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1573694AbjLHMSM convert rfc822-to-8bit (ORCPT + 99 others); Fri, 8 Dec 2023 07:18:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233394AbjLHMSJ (ORCPT ); Fri, 8 Dec 2023 07:18:09 -0500 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: x-originating-ip: [10.174.149.11] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-CFilter-Loop: Reflected X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Fri, 08 Dec 2023 04:18:26 -0800 (PST) > -----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 ; 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 > > 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(-) > > Your patch has already been merged. So please send this as an incremental > patch. > OK. No problem. Regards, -Gonglei > Thanks, > -- > Email: Herbert Xu Home Page: > http://gondor.apana.org.au/~herbert/ > PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt