STABLE14-simple-darwin-disable-bkg-20060128

avoid potential hang by disabling bkg daemons on 10.4 for now


(cherry picked from commit 2e76a2450e06c93d7cdbc0fe07bd9302ac085952)
This commit is contained in:
Chaskiel M Grundman 2006-01-28 19:22:30 +00:00 committed by Derrick Brashear
parent 6e76880bf7
commit 7ce44cff31
2 changed files with 8 additions and 0 deletions

View 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;

View File

@ -95,6 +95,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"