Whamcloud - gitweb
b=13733
authoryury <yury>
Sun, 7 Oct 2007 09:33:24 +0000 (09:33 +0000)
committeryury <yury>
Sun, 7 Oct 2007 09:33:24 +0000 (09:33 +0000)
r=vitaly,ericm
- fixes ASSERT failure in exp_connect_lru_resize if GSS is enabled

lustre/ldlm/ldlm_lib.c
lustre/ldlm/ldlm_request.c

index 94add82..380c5f5 100644 (file)
@@ -1794,7 +1794,13 @@ int target_pack_pool_reply(struct ptlrpc_request *req)
 {
         struct ldlm_pool *pl;
         ENTRY;
-    
+   
+        if (req->rq_export == NULL) {
+                lustre_msg_set_slv(req->rq_repmsg, 0);
+                lustre_msg_set_limit(req->rq_repmsg, 0);
+                RETURN(0);
+        }
         if (!exp_connect_lru_resize(req->rq_export))
                 RETURN(0);
         
index 771ed62..6d4f672 100644 (file)
@@ -957,6 +957,10 @@ int ldlm_cli_update_pool(struct ptlrpc_request *req)
         if (!imp_connect_lru_resize(req->rq_import))
                 RETURN(0);
 
+        if (lustre_msg_get_slv(req->rq_repmsg) == 0 ||
+            lustre_msg_get_limit(req->rq_repmsg) == 0)
+                RETURN(0);
+
         pl = ldlm_imp2pl(req->rq_import);
         
         spin_lock(&pl->pl_lock);