]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
linux-init-rwlocks-20020926
authorDavid Howells <dhowells@warthog.cambridge.redhat.com>
Thu, 26 Sep 2002 07:39:46 +0000 (07:39 +0000)
committerDerrick Brashear <shadow@dementia.org>
Thu, 26 Sep 2002 07:39:46 +0000 (07:39 +0000)
init linux rwlocks we missed before

src/afs/LINUX/osi_module.c
src/afs/LINUX/osi_prototypes.h
src/afs/afs_init.c
src/afs/afs_prototypes.h

index c7796f22e187409ecff3ce1779cddcf0f49ae92b..b3e7cd2608911e46b88e02e567569603d45c946d 100644 (file)
@@ -200,7 +200,7 @@ int init_module(void)
 #endif
 #endif
 
-
+    RWLOCK_INIT(&afs_xosi, "afs_xosi");
 
     /* obtain PAGE_OFFSET value */
     afs_linux_page_offset = get_page_offset();
index 1757f7cd91c08173ae88a02275ffff242c793988..20af9d15caf2dda379897023e4e5123aa765ef38 100644 (file)
@@ -27,6 +27,8 @@ extern cred_t *crdup(cred_t *cr);
 extern cred_t *crref(void);
 extern void crset(cred_t *cr);
 
+/* osi_file.c */
+extern afs_rwlock_t afs_xosi;
 
 /* osi_misc.c */
 extern int osi_lookupname(char *aname, uio_seg_t seg, int followlink,
index 2f6d0ddb3e5116559722a5ae13e63ac9bad7a1a3..5989acf46522930c117d4429d5fc2083330953f2 100644 (file)
@@ -446,6 +446,8 @@ int afs_ResourceInit(int preallocs)
     RWLOCK_INIT(&afs_xuser, "afs_xuser");
     RWLOCK_INIT(&afs_xvolume, "afs_xvolume");
     RWLOCK_INIT(&afs_xserver, "afs_xserver");
+    RWLOCK_INIT(&afs_xsrvAddr, "afs_xsrvAddr");
+    RWLOCK_INIT(&afs_icl_lock, "afs_icl_lock");
     RWLOCK_INIT(&afs_xinterface, "afs_xinterface");
     LOCK_INIT(&afs_puttofileLock, "afs_puttofileLock");
 #ifndef        AFS_AIX32_ENV
index 5b59a8eaf2225248e990fddeff051bc9e3e481f1..89bc71b86a1896a7386ed692cfc73ee482b6616d 100644 (file)
@@ -548,6 +548,7 @@ extern int afs_TruncateAllSegments(register struct vcache *avc, afs_size_t alen,
 /* afs_server.c */
 extern afs_rwlock_t afs_xsrvAddr;
 extern afs_rwlock_t afs_xserver;
+extern afs_rwlock_t afs_icl_lock;
 extern struct srvAddr *afs_srvAddrs[NSERVERS];
 extern struct server *afs_servers[NSERVERS];
 extern int afs_totalServers;