diff options
author | Hans Holmberg <hans.holmberg@cnexlabs.com> | 2018-06-01 10:41:13 -0400 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-06-01 11:02:53 -0400 |
commit | cc9c9a00b10eaf33abe1cece2c05ea34601af21b (patch) | |
tree | fb118d35b601bc76bb3281d2c26ed33eaeab0710 /drivers/lightnvm/pblk-core.c | |
parent | b06be2873d916e58c00ecfa664c22a75fa721260 (diff) |
lightnvm: pblk: kick writer on new flush points
Unless we kick the writer directly when setting a new flush point, the
user risks having to wait for up to one second (the default timeout for
the write thread to be kicked) for the IO to complete.
Signed-off-by: Hans Holmberg <hans.holmberg@cnexlabs.com>
Signed-off-by: Matias Bjørling <mb@lightnvm.io>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/lightnvm/pblk-core.c')
-rw-r--r-- | drivers/lightnvm/pblk-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/lightnvm/pblk-core.c b/drivers/lightnvm/pblk-core.c index 99036befb571..a5750534efed 100644 --- a/drivers/lightnvm/pblk-core.c +++ b/drivers/lightnvm/pblk-core.c | |||
@@ -322,7 +322,7 @@ err: | |||
322 | return -1; | 322 | return -1; |
323 | } | 323 | } |
324 | 324 | ||
325 | static void pblk_write_kick(struct pblk *pblk) | 325 | void pblk_write_kick(struct pblk *pblk) |
326 | { | 326 | { |
327 | wake_up_process(pblk->writer_ts); | 327 | wake_up_process(pblk->writer_ts); |
328 | mod_timer(&pblk->wtimer, jiffies + msecs_to_jiffies(1000)); | 328 | mod_timer(&pblk->wtimer, jiffies + msecs_to_jiffies(1000)); |