mirror of
https://git.openafs.org/openafs.git
synced 2025-01-31 05:27:44 +00:00
STABLE14-darwin-avoid-fsref-panic-maybe-20070728
maybe this works. (cherry picked from commit a608cd2e24e50026c36148eb357c03d583384dde)
This commit is contained in:
parent
13232f0064
commit
2072c154ef
@ -2096,11 +2096,13 @@ afs_darwin_finalizevnode(struct vcache *avc, struct vnode *dvp, struct component
|
||||
par.vnfs_markroot = 1;
|
||||
error = vnode_create(VNCREATE_FLAVOR, VCREATESIZE, &par, &nvp);
|
||||
if (!error) {
|
||||
vnode_addfsref(nvp);
|
||||
avc->v = nvp;
|
||||
avc->states &=~ CDeadVnode;
|
||||
vnode_clearfsnode(ovp);
|
||||
vnode_removefsref(ovp);
|
||||
vnode_addfsref(nvp);
|
||||
avc->v = nvp;
|
||||
avc->states &=~ CDeadVnode;
|
||||
if (!(avc->states & CVInit)) {
|
||||
vnode_clearfsnode(ovp);
|
||||
vnode_removefsref(ovp);
|
||||
}
|
||||
}
|
||||
AFS_GLOCK();
|
||||
ReleaseWriteLock(&avc->lock);
|
||||
|
Loading…
x
Reference in New Issue
Block a user