]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
simple-darwin-disable-bkg-20060128
authorChaskiel M Grundman <cg2v@andrew.cmu.edu>
Sat, 28 Jan 2006 19:20:44 +0000 (19:20 +0000)
committerDerrick Brashear <shadow@dementia.org>
Sat, 28 Jan 2006 19:20:44 +0000 (19:20 +0000)
avoid potential hang by disabling bkg daemons on 10.4 for now

src/afs/afs_daemons.c
src/config/param.ppc_darwin_80.h

index cf64703e1098d52fb0a6eb1dbc46f72be89210e7..1634b7ffd5fb89880096f7cba6482c42baa8e8e9 100644 (file)
@@ -35,6 +35,9 @@ short afs_brsDaemons = 0;     /* number of daemons waiting for brs requests */
 struct brequest afs_brs[NBRS]; /* request structures */
 struct afs_osi_WaitHandle AFS_WaitHandler, AFS_CSWaitHandler;
 static int afs_brs_count = 0;  /* request counter, to service reqs in order */
+#ifdef AFS_DISABLE_BKG
+extern int disable_bkg = AFS_DISABLE_BKG;
+#endif
 
 static int rxepoch_checked = 0;
 #define afs_CheckRXEpoch() {if (rxepoch_checked == 0 && rxkad_EpochWasSet) { \
@@ -563,6 +566,10 @@ int
 afs_BBusy(void)
 {
     AFS_STATCNT(afs_BBusy);
+#ifdef AFS_DISABLE_BKG
+    if (disable_bkg)
+       return 1;
+#endif
     if (afs_brsDaemons > 0)
        return 0;
     return 1;
index b08ddd99a2e6fe026b33d561db72771076153d4c..6b1662def97660b7c18bafa1e877bc814fad4f1c 100644 (file)
@@ -96,6 +96,7 @@
 #define AFS_NONFSTRANS
 #define AFS_SYSCALL             230
 #define DARWIN_REFBASE 0
+#define AFS_DISABLE_BKG 1
 
 /* File system entry (used if mount.h doesn't define MOUNT_AFS */
 #define AFS_MOUNT_AFS    "afs"