RE: [PATCH] crypto: virtio-crypto: Handle dataq logic with tasklet

2023-12-06 Thread Gonglei (Arei)
> -Original Message- > From: Michael S. Tsirkin [mailto:m...@redhat.com] > Sent: Friday, December 1, 2023 10:51 PM > To: Gonglei (Arei) > Cc: Herbert Xu ; linux-crypto@vger.kernel.org; > Halil Pasic ; Jason Wang ; > virtualizat...@lists.linux-foundation.org; linux-ker...@vger.kernel.org

RE: [PATCH] crypto: virtio-crypto: Handle dataq logic with tasklet

2023-12-06 Thread Gonglei (Arei)
Hi Herbert, > -Original Message- > From: Herbert Xu [mailto:herb...@gondor.apana.org.au] > Sent: Friday, December 1, 2023 6:11 PM > To: Gonglei (Arei) > Cc: linux-crypto@vger.kernel.org; pa...@linux.ibm.com; m...@redhat.com; > jasow...@redhat.com; virtualizat...@lists.linux-foundation.org

[PATCH v2] crypto: virtio-crypto: Handle dataq logic with tasklet

2023-12-06 Thread Gonglei (Arei)
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: wangy