summaryrefslogtreecommitdiff
path: root/crypto/mcryptd.c
diff options
context:
space:
mode:
authorPetr Mladek <pmladek@suse.com>2016-10-19 13:54:30 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2016-10-25 11:08:25 +0800
commit949b2a98b034e395851bad3bdb45056bd0c5d94b (patch)
tree233a66a5a6dcb7da8bfbef35308410b502e4cda5 /crypto/mcryptd.c
parent29128c0e42463e452ee56a74b7e06271adac9cea (diff)
downloadlinux-crypto-949b2a98b034e395851bad3bdb45056bd0c5d94b.tar.gz
linux-crypto-949b2a98b034e395851bad3bdb45056bd0c5d94b.zip
crypto: engine - Handle the kthread worker using the new API
Use the new API to create and destroy the crypto engine kthread worker. The API hides some implementation details. In particular, kthread_create_worker() allocates and initializes struct kthread_worker. It runs the kthread the right way and stores task_struct into the worker structure. kthread_destroy_worker() flushes all pending works, stops the kthread and frees the structure. This patch does not change the existing behavior except for dynamically allocating struct kthread_worker and storing only the pointer of this structure. It is compile tested only because I did not find an easy way how to run the code. Well, it should be pretty safe given the nature of the change. Signed-off-by: Petr Mladek <pmladek@suse.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/mcryptd.c')
0 files changed, 0 insertions, 0 deletions