linux_dsm_epyc7002/drivers/lightnvm
Javier González cc4f5ba1fb 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>
2018-01-05 08:50:12 -07:00
..
core.c lightnvm: set target over-provision on create ioctl 2018-01-05 08:50:12 -07:00
Kconfig lightnvm: remove rrpc 2018-01-05 08:50:12 -07:00
Makefile lightnvm: remove rrpc 2018-01-05 08:50:12 -07:00
pblk-cache.c lightnvm: pblk: simplify path on REQ_PREFLUSH 2017-10-13 08:34:57 -06:00
pblk-core.c lightnvm: pblk: do not log recovery read errors 2018-01-05 08:50:12 -07:00
pblk-gc.c lightnvm: pblk: remove pblk_gc_stop 2018-01-05 08:50:12 -07:00
pblk-init.c lightnvm: pblk: ensure kthread alloc. before kicking it 2018-01-05 08:50:12 -07:00
pblk-map.c lightnvm: use internal pblk methods 2018-01-05 08:50:12 -07:00
pblk-rb.c lightnvm: pblk: prevent premature sync point resets 2018-01-05 08:50:12 -07:00
pblk-read.c lightnvm: pblk: compress and reorder helper functions 2018-01-05 08:50:12 -07:00
pblk-recovery.c lightnvm: pblk: ignore high ecc errors on recovery 2018-01-05 08:50:12 -07:00
pblk-rl.c lightnvm: pblk: use exact free block counter in RL 2018-01-05 08:50:12 -07:00
pblk-sysfs.c lightnvm: pblk: use exact free block counter in RL 2018-01-05 08:50:12 -07:00
pblk-write.c lightnvm: pblk: clear flush point on completed writes 2018-01-05 08:50:12 -07:00
pblk.h lightnvm: pblk: do not log recovery read errors 2018-01-05 08:50:12 -07:00