mirror of
https://git.openafs.org/openafs.git
synced 2025-01-21 08:20:16 +00:00
openbsd-deadlock-fix-20031010
release global lock when calling getnewvnode thanks to wollman@khavrinen.lcs.mit.edu for finding this
This commit is contained in:
parent
5f705ff1b9
commit
7e554cf673
@ -928,7 +928,9 @@ afs_NewVCache(struct VenusFid *afid, struct server *serverp)
|
|||||||
tvc->v.v_vm_info->pager = MEMORY_OBJECT_NULL;
|
tvc->v.v_vm_info->pager = MEMORY_OBJECT_NULL;
|
||||||
#endif /* AFS_MACH_ENV */
|
#endif /* AFS_MACH_ENV */
|
||||||
#ifdef AFS_OBSD_ENV
|
#ifdef AFS_OBSD_ENV
|
||||||
|
AFS_GUNLOCK();
|
||||||
afs_nbsd_getnewvnode(tvc); /* includes one refcount */
|
afs_nbsd_getnewvnode(tvc); /* includes one refcount */
|
||||||
|
AFS_GLOCK();
|
||||||
lockinit(&tvc->rwlock, PINOD, "vcache", 0, 0);
|
lockinit(&tvc->rwlock, PINOD, "vcache", 0, 0);
|
||||||
#endif
|
#endif
|
||||||
tvc->parentVnode = 0;
|
tvc->parentVnode = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user