more-rxglock-cleanup-20060126
authorChas Williams <chas@cmf.nrl.navy.mil>
Thu, 26 Jan 2006 16:00:34 +0000 (16:00 +0000)
committerDerrick Brashear <shadow@dementia.org>
Thu, 26 Jan 2006 16:00:34 +0000 (16:00 +0000)
FIXES 23321

more rx glock cleanup. eval for pullup after 1.4.1

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 b554d45..3a245b2 100644 (file)
@@ -79,9 +79,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
@@ -94,10 +91,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 385b22c..6be21a4 100644 (file)
@@ -25,8 +25,6 @@
 #include <sys/mutex.h>
 #endif
 
-extern struct simplelock afs_rxglobal_lock;
-
 /* 
  * Time related macros
  */
index a1a3e37..a0f7101 100644 (file)
@@ -24,7 +24,6 @@
 /* #include <sys/unix_defs.h> */
 
 #define getpid()               curproc
-extern struct simplelock afs_rxglobal_lock;
 
 /* 
  * Time related macros
index 16c9b26..a449b6c 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 e596578..b2731ae 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 c1ed963..ce1c1c6 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 eeebdf2..5490d58 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 dce1f5f..df8535f 100644 (file)
@@ -445,10 +445,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;