]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE12-move-up-cell-initialization-in-cachemgr-20030323
authorDerrick Brashear <shadow@dementia.org>
Sun, 23 Mar 2003 19:47:53 +0000 (19:47 +0000)
committerDerrick Brashear <shadow@dementia.org>
Sun, 23 Mar 2003 19:47:53 +0000 (19:47 +0000)
to potentially avoid an oops at startup

(cherry picked from commit 3fa5f389b2b7778cf0df5a506c91b427b147c4c2)

src/afs/afs_call.c
src/afsd/afsd.c

index 34905402ccf8cdebe7b7c57c09ae3f0391698fcd..ad47c04d1ce2f839010bb7c35d5b60e2eb827221 100644 (file)
@@ -497,8 +497,10 @@ long parm, parm2, parm3, parm4, parm5, parm6;
        char *tbuffer1 = osi_AllocSmallSpace(AFS_SMALLOCSIZ), *cnamep = 0;
        int cflags = parm4;
 
-       /* wait for basic init */
+#if 0
+       /* wait for basic init - XXX can't find any reason we need this? */
        while (afs_initState < AFSOP_START_BKG) afs_osi_Sleep(&afs_initState);
+#endif
 
        AFS_COPYIN((char *)parm2, (char *)tcell.hosts, sizeof(tcell.hosts), code);
        if (!code) {
index 7d9aa5c9640c4d2c7940b4c3c0285497c2fde47e..5afd464b076ae4a57d3a7daae3b05210f20d6535 100644 (file)
@@ -1668,6 +1668,17 @@ mainproc(as, arock)
            printf("%s: Error enabling fakestat support.\n", rn);
     }
 
+    /*
+     * Tell the kernel about each cell in the configuration.
+     */
+    afsconf_CellApply(cdir, ConfigCell, NULL);
+    afsconf_CellAliasApply(cdir, ConfigCellAlias, NULL);
+
+    /*
+     * Set the primary cell name.
+     */
+    call_syscall(AFSOP_SET_THISCELL, LclCellName);
+
     /* Initialize AFS daemon threads. */
     if (afsd_verbose)
        printf("%s: Forking AFS daemon.\n", rn);
@@ -1723,17 +1734,6 @@ mainproc(as, arock)
     }
 #endif
 
-    /*
-     * Tell the kernel about each cell in the configuration.
-     */
-    afsconf_CellApply(cdir, ConfigCell, (char *) 0);
-    afsconf_CellAliasApply(cdir, ConfigCellAlias, (char *) 0);
-
-    /*
-     * Set the primary cell name.
-     */
-    call_syscall(AFSOP_SET_THISCELL, LclCellName);
-
     /*
      * If the root volume has been explicitly set, tell the kernel.
      */