Whamcloud - gitweb
LU-12400 ptlrpc: Sun RPC changes for RCU locking
[fs/lustre-release.git] / lustre / ptlrpc / gss / gss_svc_upcall.c
index 58eb5e4..f5edaf0 100644 (file)
@@ -927,11 +927,11 @@ cache_check:
                if (first_check) {
                        first_check = 0;
 
-                       read_lock(&rsi_cache.hash_lock);
+                       cache_read_lock(&rsi_cache);
                        valid = test_bit(CACHE_VALID, &rsip->h.flags);
                        if (valid == 0)
                                set_current_state(TASK_INTERRUPTIBLE);
-                       read_unlock(&rsi_cache.hash_lock);
+                       cache_read_unlock(&rsi_cache);
 
                        if (valid == 0) {
                                unsigned long timeout;