]> www.infradead.org Git - users/jedix/linux-maple.git/commit
crypto: api - Move alg destroy work from instance to template
authorHerbert Xu <herbert@gondor.apana.org.au>
Mon, 17 Mar 2025 08:33:54 +0000 (16:33 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 7 Apr 2025 05:22:25 +0000 (13:22 +0800)
commit3860642e0a87c8aef3c4285f3bb4ad473cfd514f
tree543e25edc6299ebebe90a198b62d5566efec4776
parent1ddaff40c08abb926be5ba713c5efc412d0836c5
crypto: api - Move alg destroy work from instance to template

Commit 9ae4577bc077 ("crypto: api - Use work queue in
crypto_destroy_instance") introduced a work struct to free an
instance after the last user goes away.

Move the delayed work from the instance into its template so that
when the template is unregistered it can ensure that all its
instances have been freed before returning.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/algapi.c
include/crypto/algapi.h