r=vitaly,ericm
- fixes ASSERT failure in exp_connect_lru_resize if GSS is enabled
{
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);
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);