From: Derrick Brashear Date: Sun, 23 Mar 2003 19:43:47 +0000 (+0000) Subject: move-up-cell-initialization-in-cachemgr-20030323 X-Git-Tag: openafs-devel-1_3_50~296 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=3fa5f389b2b7778cf0df5a506c91b427b147c4c2;p=packages%2Fo%2Fopenafs.git move-up-cell-initialization-in-cachemgr-20030323 may be related to an oops at startup --- diff --git a/src/afs/afs_call.c b/src/afs/afs_call.c index ba9fa9762..e30b5be86 100644 --- a/src/afs/afs_call.c +++ b/src/afs/afs_call.c @@ -507,8 +507,10 @@ long parm, parm2, parm3, parm4, parm5, parm6; char *tbuffer1 = osi_AllocSmallSpace(AFS_SMALLOCSIZ); 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) { diff --git a/src/afsd/afsd.c b/src/afsd/afsd.c index e6b2a0960..46296c8dc 100644 --- a/src/afsd/afsd.c +++ b/src/afsd/afsd.c @@ -1703,6 +1703,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); @@ -1758,17 +1769,6 @@ mainproc(as, arock) } #endif - /* - * 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); - /* * If the root volume has been explicitly set, tell the kernel. */