Re: [PATCH] crypto: virtio-crypto: call finalize with bh disabled

From: Herbert Xu
Date: Mon Nov 06 2023 - 05:09:02 EST


On Thu, Nov 02, 2023 at 01:01:09PM +0000, Gonglei (Arei) wrote:
>
> > So I think the core of this question is: Can we call crypto_finalize_request() in
> > the upper half of the interrupt?

The finalize path originates from the network stack. So the conditions
are the same as that of the network stack receive side. That means
hard IRQ paths are unacceptable but softirq is OK.

Cheers,
--
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt