summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/vfs_subr.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
index 4fe7deb..579f08d 100644
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -2545,8 +2545,10 @@ vclean(vp, flags, td)
vfree(vp);
/*
- * Done with purge, notify sleepers of the grim news.
+ * Done with purge, reset to the standard lock and
+ * notify sleepers of the grim news.
*/
+ vp->v_vnlock = &vp->v_lock;
vp->v_op = dead_vnodeop_p;
if (vp->v_pollinfo != NULL)
vn_pollgone(vp);
OpenPOWER on IntegriCloud