From fee78214f69ae4895e47e3c9b70e354646c154b6 Mon Sep 17 00:00:00 2001 From: David Howells Date: Thu, 26 Sep 2002 07:39:46 +0000 Subject: [PATCH] linux-init-rwlocks-20020926 init linux rwlocks we missed before --- src/afs/LINUX/osi_module.c | 2 +- src/afs/LINUX/osi_prototypes.h | 2 ++ src/afs/afs_init.c | 2 ++ src/afs/afs_prototypes.h | 1 + 4 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/afs/LINUX/osi_module.c b/src/afs/LINUX/osi_module.c index c7796f22e..b3e7cd260 100644 --- a/src/afs/LINUX/osi_module.c +++ b/src/afs/LINUX/osi_module.c @@ -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(); diff --git a/src/afs/LINUX/osi_prototypes.h b/src/afs/LINUX/osi_prototypes.h index 1757f7cd9..20af9d15c 100644 --- a/src/afs/LINUX/osi_prototypes.h +++ b/src/afs/LINUX/osi_prototypes.h @@ -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, diff --git a/src/afs/afs_init.c b/src/afs/afs_init.c index 2f6d0ddb3..5989acf46 100644 --- a/src/afs/afs_init.c +++ b/src/afs/afs_init.c @@ -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 diff --git a/src/afs/afs_prototypes.h b/src/afs/afs_prototypes.h index 5b59a8eaf..89bc71b86 100644 --- a/src/afs/afs_prototypes.h +++ b/src/afs/afs_prototypes.h @@ -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; -- 2.39.5