mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-10-28 11:25:21 +01:00
spl_vfs: fix vrele task runner signature mismatch
Reviewed-by: Alexander Motin <[email protected]> Signed-off-by: SHENGYI HONG <[email protected]> Closes #17101
This commit is contained in:
1 parent
d033f26765
commit
83fa051ceb
1 file changed
+8
-2
@@ -257,6 +257,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
|
||||
@@ -273,6 +279,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);
|
||||
}
|
||||
Reference in new issue
Block a user