Whamcloud - gitweb
b=21882 handle SLV==1 on client side
[fs/lustre-release.git] / lustre / ldlm / ldlm_request.c
index 7b55b01..4c7c2f0 100644 (file)
@@ -1345,7 +1345,7 @@ static ldlm_policy_res_t ldlm_cancel_lrur_policy(struct ldlm_namespace *ns,
          * Inform pool about current CLV to see it via proc.
          */
         ldlm_pool_set_clv(pl, lv);
-        return (slv == 1 || lv < slv) ?
+        return (slv == 0 || lv < slv) ?
                 LDLM_POLICY_KEEP_LOCK : LDLM_POLICY_CANCEL_LOCK;
 }