lightnvm: Convert timers to use timer_setup()
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: Matias Bjorling <mb@lightnvm.io> Cc: linux-block@vger.kernel.org Signed-off-by: Kees Cook <keescook@chromium.org>
This commit is contained in:
@@ -866,7 +866,7 @@ fail:
|
||||
|
||||
static int pblk_writer_init(struct pblk *pblk)
|
||||
{
|
||||
setup_timer(&pblk->wtimer, pblk_write_timer_fn, (unsigned long)pblk);
|
||||
timer_setup(&pblk->wtimer, pblk_write_timer_fn, 0);
|
||||
mod_timer(&pblk->wtimer, jiffies + msecs_to_jiffies(100));
|
||||
|
||||
pblk->writer_ts = kthread_create(pblk_write_ts, pblk, "pblk-writer-t");
|
||||
|
Reference in New Issue
Block a user