From 7e554cf673820fe5a4ac11a57f47b4172ae97024 Mon Sep 17 00:00:00 2001 From: Jim Rees Date: Fri, 10 Oct 2003 21:01:56 +0000 Subject: [PATCH] openbsd-deadlock-fix-20031010 release global lock when calling getnewvnode thanks to wollman@khavrinen.lcs.mit.edu for finding this --- src/afs/afs_vcache.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/afs/afs_vcache.c b/src/afs/afs_vcache.c index 1c25cd85b8..fdc594bbdf 100644 --- a/src/afs/afs_vcache.c +++ b/src/afs/afs_vcache.c @@ -928,7 +928,9 @@ afs_NewVCache(struct VenusFid *afid, struct server *serverp) tvc->v.v_vm_info->pager = MEMORY_OBJECT_NULL; #endif /* AFS_MACH_ENV */ #ifdef AFS_OBSD_ENV + AFS_GUNLOCK(); afs_nbsd_getnewvnode(tvc); /* includes one refcount */ + AFS_GLOCK(); lockinit(&tvc->rwlock, PINOD, "vcache", 0, 0); #endif tvc->parentVnode = 0;