|
@@ -1240,10 +1240,8 @@ static ldlm_policy_res_t ldlm_cancel_aged_policy(struct ldlm_namespace *ns,
|
|
|
int unused, int added,
|
|
|
int count)
|
|
|
{
|
|
|
- if (added >= count)
|
|
|
- return LDLM_POLICY_KEEP_LOCK;
|
|
|
-
|
|
|
- if (time_before(cfs_time_current(),
|
|
|
+ if ((added >= count) &&
|
|
|
+ time_before(cfs_time_current(),
|
|
|
cfs_time_add(lock->l_last_used, ns->ns_max_age)))
|
|
|
return LDLM_POLICY_KEEP_LOCK;
|
|
|
|