]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
DEVEL15-darwin-vfs-context-pullback-20071108
authorDerrick Brashear <shadow@dementia.org>
Thu, 8 Nov 2007 14:40:12 +0000 (14:40 +0000)
committerDerrick Brashear <shadow@dementia.org>
Thu, 8 Nov 2007 14:40:12 +0000 (14:40 +0000)
again, commit fix we have in 1.4

(cherry picked from commit bb900e97df905c9805d9e7dc53a9303c671cf819)

src/afs/afs_daemons.c

index 9f19511f493844c0ac46cfaba4cc09e3603624d4..4a2f8380be54027871354bd5e1929e79244fb0a9 100644 (file)
@@ -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