Re: [PATCH] crypto/authenc: don't return -EBUSY when enqueuing the hash request

Herbert Xu
2025-09-23T15:18:02Z

On Tue, Sep 23, 2025 at 01:14:10PM +0200, Mikulas Patocka wrote:
>
> static void authenc_request_complete(struct aead_request *req, int err)
> {
> if (err != -EINPROGRESS)
> aead_request_complete(req, err);
> }

Oh OK. That was kind of a hack which worked because authenc was
used by IPsec only, so it didn't expect to be called with MAY_BACKLOG.

Now that you're calling it with MAY_BACKLOG, we need to fix it to
distinguish between an EINPROGRESS notification for EBUSY and one
that's returned directly by an async function.

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