From bb900e97df905c9805d9e7dc53a9303c671cf819 Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Thu, 8 Nov 2007 14:38:48 +0000 Subject: [PATCH] darwin-vfs-context-pullback-20071108 again, commit fix we have in 1.4 --- src/afs/afs_daemons.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) 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 -- 2.39.5