From: Derrick Brashear Date: Thu, 8 Nov 2007 14:38:48 +0000 (+0000) Subject: darwin-vfs-context-pullback-20071108 X-Git-Tag: BP-openafs-windows-kdfs-ifs~370 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=bb900e97df905c9805d9e7dc53a9303c671cf819;p=packages%2Fo%2Fopenafs.git darwin-vfs-context-pullback-20071108 again, commit fix we have in 1.4 --- diff --git a/src/afs/afs_daemons.c b/src/afs/afs_daemons.c index 9f19511f4..4a2f8380b 100644 --- a/src/afs/afs_daemons.c +++ b/src/afs/afs_daemons.c @@ -123,12 +123,9 @@ afs_CheckServerDaemon(void) } afs_CheckServerDaemonStarted = 0; } -#define RECURSIVE_VFS_CONTEXT 1 -#if RECURSIVE_VFS_CONTEXT + extern int vfs_context_ref; -#else -#define vfs_context_ref 1 -#endif + void afs_Daemon(void) { @@ -153,10 +150,8 @@ afs_Daemon(void) osi_Panic("vfs context already initialized"); while (afs_osi_ctxtp && vfs_context_ref) afs_osi_Sleep(&afs_osi_ctxtp); -#if RECURSIVE_VFS_CONTEXT if (afs_osi_ctxtp && !vfs_context_ref) vfs_context_rele(afs_osi_ctxtp); -#endif afs_osi_ctxtp = vfs_context_create(NULL); afs_osi_ctxtp_initialized = 1; #endif