Skip to content
Commit cc4f5ba1 authored by Javier González's avatar Javier González Committed by Jens Axboe
Browse files

lightnvm: pblk: ensure kthread alloc. before kicking it



When creating the write thread, ensure that the kthread has been created
before initializing the timer responsible from kicking it. Otherwise, if
the kthread creation fails or gets killed from used space, we risk
kicking an empty thread structure.

Also, since the kthread creation can be interrupted form user space,
adapt the error path to not report an error when this happens, since it
is intentional that the instance creation is aborted.

Signed-off-by: default avatarJavier González <javier@cnexlabs.com>
Updated source to reflect the new timer_setup API.
Signed-off-by: default avatarMatias Bjørling <m@bjorling.me>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 8f554597
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment