Skip to content

Commit

Permalink
spl_vfs: fix vrele task runner signature mismatch
Browse files Browse the repository at this point in the history
Signed-off-by: SHENGYI HONG <[email protected]>
  • Loading branch information
aokblast committed Feb 28, 2025
1 parent ecc44c4 commit 652fb72
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions module/os/freebsd/spl/spl_vfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,12 @@ mount_snapshot(kthread_t *td, vnode_t **vpp, const char *fstype, char *fspath,
return (0);
}

static void
vrele_task_runner(void *vp)
{
vrele((vnode_t *)vp);
}

/*
* Like vn_rele() except if we are going to call VOP_INACTIVE() then do it
* asynchronously using a taskq. This can avoid deadlocks caused by re-entering
Expand All @@ -272,6 +278,6 @@ vn_rele_async(vnode_t *vp, taskq_t *taskq)
VERIFY3U(vp->v_usecount, >, 0);
if (refcount_release_if_not_last(&vp->v_usecount))
return;
VERIFY3U(taskq_dispatch((taskq_t *)taskq,
(task_func_t *)vrele, vp, TQ_SLEEP), !=, 0);
VERIFY3U(taskq_dispatch((taskq_t *)taskq, vrele_task_runner, vp,
TQ_SLEEP), !=, 0);

Check failure on line 282 in module/os/freebsd/spl/spl_vfs.c

View workflow job for this annotation

GitHub Actions / checkstyle

spaces instead of tabs
}

0 comments on commit 652fb72

Please sign in to comment.