From d7eeb120b5d039bb57c7463ff571c30ad39a8e65 Mon Sep 17 00:00:00 2001 From: Richard Yao Date: Wed, 22 Nov 2023 18:14:59 -0500 Subject: [PATCH] Zero ->tqent_timer fields in taskq_dispatch_ent() This appears to have been an oversight in the commit that added the `taskq_dispatch_delay()` extension to the OpenSolaris DDI, d9acd930b52503582425c6398fc8dbc1d7d4a01b. Signed-off-by: Richard Yao --- module/os/linux/spl/spl-taskq.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/module/os/linux/spl/spl-taskq.c b/module/os/linux/spl/spl-taskq.c index 79a1a8e5a5aa..ffe43fd68f88 100644 --- a/module/os/linux/spl/spl-taskq.c +++ b/module/os/linux/spl/spl-taskq.c @@ -735,6 +735,8 @@ taskq_dispatch_ent(taskq_t *tq, task_func_t func, void *arg, uint_t flags, t->tqent_func = func; t->tqent_arg = arg; t->tqent_taskq = tq; + t->tqent_timer.function = NULL; + t->tqent_timer.expires = 0; t->tqent_birth = jiffies; DTRACE_PROBE1(taskq_ent__birth, taskq_ent_t *, t);