STABLE14-macos-reclaim-20060110

FIXES 25165

avoid a vnode cleaning pnaic during recycle


(cherry picked from commit 29924c8302431a25d4889ef4500fc5f0eeb97b2e)
This commit is contained in:
Chaskiel M Grundman 2006-01-11 04:24:39 +00:00 committed by Derrick Brashear
parent fb0850a382
commit 8dcdef73e4

View File

@ -1643,12 +1643,12 @@ afs_vop_reclaim(ap)
);
afs_osi_Wakeup(&tvc->states);
}
ReleaseWriteLock(&afs_xvcache);
AFS_GUNLOCK();
if (!error && vnode_fsnode(vp))
panic("afs_reclaim: vnode not cleaned");
if (!error && (tvc->v != NULL))
panic("afs_reclaim: vcache not cleaned");
ReleaseWriteLock(&afs_xvcache);
AFS_GUNLOCK();
}
return error;
}