]> asedeno.scripts.mit.edu Git - linux.git/commit
lightnvm: pblk: delete writer kick timer before stopping thread
authorHans Holmberg <hans.holmberg@cnexlabs.com>
Thu, 29 Mar 2018 22:04:56 +0000 (00:04 +0200)
committerJens Axboe <axboe@kernel.dk>
Thu, 29 Mar 2018 23:29:09 +0000 (17:29 -0600)
commit7be970b2258654ca48bdf35d532b2eeef038fe91
tree891fe4b3cb0d52c1e7681410f5b9e40e151b7dc7
parent5d149bfabeb889b7ee5cd6491bc6d2b5b20c4abd
lightnvm: pblk: delete writer kick timer before stopping thread

Unless we delete the timer that wakes up the write thread
before we stop the thread we risk re-starting the thread, so
delete the timer first.

Signed-off-by: Hans Holmberg <hans.holmberg@cnexlabs.com>
Reviewed-by: Javier González <javier@cnexlabs.com>
Signed-off-by: Matias Bjørling <mb@lightnvm.io>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/lightnvm/pblk-init.c