dm writecache: Make use of the helper macro kthread_run()
authorCai Huoqing <caihuoqing@baidu.com>
Thu, 21 Oct 2021 08:39:09 +0000 (16:39 +0800)
committerMike Snitzer <snitzer@redhat.com>
Mon, 1 Nov 2021 17:28:50 +0000 (13:28 -0400)
commitf635237a9bfb31f61294d231e342419c89ec21b1
treee091dca720e98bb42f27c52e2078c967bdffb08d
parenta5217c11058cc56cdfa1523facd8a4e6d7e88795
dm writecache: 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-writecache.c