diff options
author | Javier González <javier@cnexlabs.com> | 2018-01-05 14:16:17 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-01-05 08:50:12 -0700 |
commit | cc4f5ba1fb6ebe977fb44293abebb79af77556f0 (patch) | |
tree | a705d8c9a929b4e38444c3145ae67494800a30ad /drivers/input/input.c | |
parent | 8f554597e00abe04fd1f37c351b38aff33c37fc9 (diff) | |
download | linux-stable-cc4f5ba1fb6ebe977fb44293abebb79af77556f0.tar.gz linux-stable-cc4f5ba1fb6ebe977fb44293abebb79af77556f0.tar.bz2 linux-stable-cc4f5ba1fb6ebe977fb44293abebb79af77556f0.zip |
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: Javier González <javier@cnexlabs.com>
Updated source to reflect the new timer_setup API.
Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/input/input.c')
0 files changed, 0 insertions, 0 deletions