diff --git a/sys/kern/vfs_vnode.c b/sys/kern/vfs_vnode.c index 2ceaf702ad48..2791b7a0df61 100644 --- a/sys/kern/vfs_vnode.c +++ b/sys/kern/vfs_vnode.c @@ -1,4 +1,4 @@ -/* $NetBSD: vfs_vnode.c,v 1.89 2017/05/26 14:20:59 riastradh Exp $ */ +/* $NetBSD: vfs_vnode.c,v 1.90 2017/05/26 14:39:20 riastradh Exp $ */ /*- * Copyright (c) 1997-2011 The NetBSD Foundation, Inc. @@ -156,7 +156,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: vfs_vnode.c,v 1.89 2017/05/26 14:20:59 riastradh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: vfs_vnode.c,v 1.90 2017/05/26 14:39:20 riastradh Exp $"); #include #include @@ -1570,7 +1570,9 @@ vcache_reclaim(vnode_t *vp) /* * Disassociate the underlying file system from the vnode. - * Note that the VOP_INACTIVE will not unlock the vnode. + * VOP_INACTIVE leaves the vnode locked; VOP_RECLAIM unlocks + * the vnode, and may destroy the vnode so that VOP_UNLOCK + * would no longer function. */ VOP_INACTIVE(vp, &recycle); if (VOP_RECLAIM(vp)) {