diff options
| author | Hans Holmberg <[email protected]> | 2018-03-29 22:04:56 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2018-03-29 23:29:09 +0000 |
| commit | 7be970b2258654ca48bdf35d532b2eeef038fe91 (patch) | |
| tree | 891fe4b3cb0d52c1e7681410f5b9e40e151b7dc7 /drivers/lightnvm/pblk-init.c | |
| parent | lightnvm: pblk: add padding distribution sysfs attribute (diff) | |
| download | kernel-7be970b2258654ca48bdf35d532b2eeef038fe91.tar.gz kernel-7be970b2258654ca48bdf35d532b2eeef038fe91.zip | |
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 <[email protected]>
Reviewed-by: Javier González <[email protected]>
Signed-off-by: Matias Bjørling <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'drivers/lightnvm/pblk-init.c')
| -rw-r--r-- | drivers/lightnvm/pblk-init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/lightnvm/pblk-init.c b/drivers/lightnvm/pblk-init.c index 8416910ee8bf..49c65f1dd48b 100644 --- a/drivers/lightnvm/pblk-init.c +++ b/drivers/lightnvm/pblk-init.c @@ -912,9 +912,9 @@ static void pblk_writer_stop(struct pblk *pblk) WARN(pblk_rb_sync_count(&pblk->rwb), "Stopping not fully synced write buffer\n"); + del_timer_sync(&pblk->wtimer); if (pblk->writer_ts) kthread_stop(pblk->writer_ts); - del_timer(&pblk->wtimer); } static void pblk_free(struct pblk *pblk) |
