darwin-avoid-fsref-panic-maybe-20070728

maybe this works.
This commit is contained in:
Derrick Brashear 2007-07-28 15:31:44 +00:00
parent 840ad12eb3
commit a608cd2e24

View File

@ -2099,9 +2099,11 @@ afs_darwin_finalizevnode(struct vcache *avc, struct vnode *dvp, struct component
vnode_addfsref(nvp);
avc->v = nvp;
avc->states &=~ CDeadVnode;
if (!(avc->states & CVInit)) {
vnode_clearfsnode(ovp);
vnode_removefsref(ovp);
}
}
AFS_GLOCK();
ReleaseWriteLock(&avc->lock);
if (!error)