]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE14-more-rxglock-cleanup-20060126
authorChas Williams <chas@cmf.nrl.navy.mil>
Mon, 22 May 2006 20:08:45 +0000 (20:08 +0000)
committerDerrick Brashear <shadow@dementia.org>
Mon, 22 May 2006 20:08:45 +0000 (20:08 +0000)
FIXES 23321

more rx glock cleanup. eval for pullup after 1.4.1

(cherry picked from commit f84de8044aab16ccaf961ba30a36929f2d1f1e50)

src/afs/DOC/afs_rwlocks
src/afs/FBSD/osi_machdep.h
src/afs/NBSD/osi_machdep.h
src/afs/OBSD/osi_machdep.h
src/afs/SOLARIS/osi_machdep.h
src/afs/afs_call.c
src/afs/afs_osi.c
src/rx/rx.c

index dacee84d9e88115a760346e15280209b2dfaacb0..d73bac71bd26eaf47c83770190ce38d1619426bd 100644 (file)
@@ -81,9 +81,6 @@ the dcache refcount.
 Many fine grained locks are used by Rx on the AIX4.1 platform.  These
 need to be explained.
 
-It is likely they could be used preference to the afs_rxglobal_lock on
-AFS_GLOBAL_SUNLOCK platforms.
-
 ***** GLOBAL LOCKS
 
 98. afs_global_lock -- This lock provides a non-preemptive environment
@@ -96,10 +93,6 @@ may reenter AFS such as vn_rele.
 data structures that need synchronization.  However, much existing code
 is deficient in this regard (e.g. afs_getevent).
 
-99. afs_rxglobal_lock -- This lock is obtained after the afs_global_lock
-at process level but is obtained independently during packet arrival
-"interrupts" and during fasttimo processing.
-
 ***** OS LOCKS
 
 100. The vnode lock on SunOS and SGI53 protects the its reference count.
index 385b22cb5849ebc1ca1deb86d42ad319b98d753c..6be21a41c7b29d735158a3a26caba6ff7754ce5d 100644 (file)
@@ -25,8 +25,6 @@
 #include <sys/mutex.h>
 #endif
 
-extern struct simplelock afs_rxglobal_lock;
-
 /* 
  * Time related macros
  */
index a1a3e3771bd8bb13568581b2961e606aafa46bb7..a0f71016cba32fbaaa83b590600bc2777bbda408 100644 (file)
@@ -24,7 +24,6 @@
 /* #include <sys/unix_defs.h> */
 
 #define getpid()               curproc
-extern struct simplelock afs_rxglobal_lock;
 
 /* 
  * Time related macros
index a7288519442797bddce7d6ac5db565d3fa53d765..538f6f5c071c23ef044bb12d69da6cba4792c420 100644 (file)
@@ -23,8 +23,6 @@
 
 #include <sys/lock.h>
 
-extern struct simplelock afs_rxglobal_lock;
-
 #define M_AFSFID       (M_TEMP-1)
 #define M_AFSBUFHDR    (M_TEMP-2)
 #define M_AFSBUFFER    (M_TEMP-3)
index e5965780254ee133d1f041a92aa9aa1ab82fdb40..b2731aee3a3892b70e97085c33e53dee16e1ffc2 100644 (file)
@@ -69,7 +69,6 @@ extern void *afs_osi_Alloc_NoSleep(size_t size);
  */
 #include <sys/mutex.h>
 extern kmutex_t afs_global_lock;
-extern kmutex_t afs_rxglobal_lock;
 
 #define AFS_GLOCK()    mutex_enter(&afs_global_lock);
 #define AFS_GUNLOCK()  mutex_exit(&afs_global_lock);
index b32f5210efaf12717e57cb05e89075d1cf2e8596..ed8f9708857db0d1d8a7efb4ef4d3938174f4e46 100644 (file)
@@ -50,7 +50,6 @@ afs_uint32 rx_bindhost;
 
 #if defined(AFS_SUN5_ENV) || defined(AFS_SGI_ENV)
 kmutex_t afs_global_lock;
-kmutex_t afs_rxglobal_lock;
 #endif
 
 #if defined(AFS_SGI_ENV) && !defined(AFS_SGI64_ENV)
index ae0bf59620785719057ac8da93f954733c21d4cc..4fb69dad0a6abb5dcad4e836ee20166167305f73 100644 (file)
@@ -71,7 +71,6 @@ osi_Init(void)
     /* Linux initialization in osi directory. Should move the others. */
     mutex_init(&afs_global_lock, "afs_global_lock", MUTEX_DEFAULT, NULL);
 #endif
-    /* afs_rxglobal_lock is initialized in rx_Init. */
 #endif /* AFS_GLOBAL_SUNLOCK */
 #endif /* AFS_HPUX_ENV */
 
index 504e9c7aae08a7d7beab108f9a81c3cc590fc424..2d79a1911476885339e64727fbbe4a6edf681bac 100644 (file)
@@ -441,10 +441,6 @@ rx_InitHost(u_int host, u_int port)
     if (!uniprocessor)
        rx_sleepLock = alloc_spinlock(LAST_HELD_ORDER - 10, "rx_sleepLock");
 #endif /* KERNEL && AFS_HPUX110_ENV */
-#else /* RX_ENABLE_LOCKS */
-#if defined(KERNEL) && defined(AFS_GLOBAL_SUNLOCK) && !defined(AFS_HPUX_ENV) && !defined(AFS_OBSD_ENV)
-    mutex_init(&afs_rxglobal_lock, "afs_rxglobal_lock", MUTEX_DEFAULT, NULL);
-#endif /* AFS_GLOBAL_SUNLOCK */
 #endif /* RX_ENABLE_LOCKS */
 
     rxi_nCalls = 0;