dm crypt: Make use of the helper macro kthread_run()
authorCai Huoqing <caihuoqing@baidu.com>
Thu, 21 Oct 2021 08:39:01 +0000 (16:39 +0800)
committerMike Snitzer <snitzer@redhat.com>
Mon, 1 Nov 2021 17:28:49 +0000 (13:28 -0400)
commita5217c11058cc56cdfa1523facd8a4e6d7e88795
tree2729fe28bc7fa3ed5e22cdad4e2fe439995d548b
parent30495e688d9dc757bae4cfc7dc3e15a79b48917f
dm crypt: Make use of the helper macro kthread_run()

Replace kthread_create/wake_up_process() with kthread_run()
to simplify the code.

Signed-off-by: Cai Huoqing <caihuoqing@baidu.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-crypt.c