From 549817334abae4036109b2af329085331d8ae1ef Mon Sep 17 00:00:00 2001 From: Jeff Roberson Date: Wed, 27 Apr 2005 09:17:11 +0000 Subject: [PATCH] - Stop checking vxthread, we've asserted that it was useless for several weeks. --- sys/kern/vfs_vnops.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sys/kern/vfs_vnops.c b/sys/kern/vfs_vnops.c index 084f3109be66..0047df0a935d 100644 --- a/sys/kern/vfs_vnops.c +++ b/sys/kern/vfs_vnops.c @@ -796,13 +796,11 @@ debug_vn_lock(vp, flags, td, filename, line) { int error; - KASSERT(vp->v_vxthread != curthread, - ("recursive vn_lock in inactive/reclaim.")); do { if ((flags & LK_INTERLOCK) == 0) VI_LOCK(vp); if ((flags & LK_NOWAIT || (flags & LK_TYPE_MASK) == 0) && - vp->v_iflag & VI_DOOMED && vp->v_vxthread != td) { + vp->v_iflag & VI_DOOMED) { VI_UNLOCK(vp); return (ENOENT); } @@ -828,7 +826,7 @@ debug_vn_lock(vp, flags, td, filename, line) * If RETRY is not set, we return ENOENT instead. */ if (error == 0 && vp->v_iflag & VI_DOOMED && - vp->v_vxthread != td && (flags & LK_RETRY) == 0) { + (flags & LK_RETRY) == 0) { VOP_UNLOCK(vp, 0, td); error = ENOENT; break;