X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fobdclass%2Fupcall_cache.c;h=0e350abbe8b3d25a8e2154bd6803c504c4106bbd;hp=165e717e7611c6c15701bb303872d770bd2a7f9a;hb=e8273a3dd71c4e6ab5ca9de3fbfbc0f7603d6930;hpb=7334a2d33cc4cf4cda0c81b126c4cb8ab28a888d diff --git a/lustre/obdclass/upcall_cache.c b/lustre/obdclass/upcall_cache.c index 165e717..0e350ab 100644 --- a/lustre/obdclass/upcall_cache.c +++ b/lustre/obdclass/upcall_cache.c @@ -428,7 +428,7 @@ struct upcall_cache *upcall_cache_init(const char *name, const char *upcall, RETURN(ERR_PTR(-ENOMEM)); spin_lock_init(&cache->uc_lock); - rwlock_init(&cache->uc_upcall_rwlock); + init_rwsem(&cache->uc_upcall_rwsem); for (i = 0; i < UC_CACHE_HASH_SIZE; i++) INIT_LIST_HEAD(&cache->uc_hashtable[i]); strlcpy(cache->uc_name, name, sizeof(cache->uc_name));