1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-15 15:06:42 +00:00

- Stop checking vxthread, we've asserted that it was useless for several

weeks.
This commit is contained in:
Jeff Roberson 2005-04-27 09:17:11 +00:00
parent 568556d720
commit 549817334a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=145587

View File

@ -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;