Skip to content
Snippets Groups Projects
Commit 023e5a2d authored by girish's avatar girish
Browse files

Allow granting glimpse locks for PW requests. (Andreas)

b=16845
i=green
i=yury.umanets
parent d0a384c6
No related branches found
No related tags found
No related merge requests found
......@@ -1699,14 +1699,11 @@ static int filter_intent_policy(struct ldlm_namespace *ns,
//fixup_handle_for_resent_req(req, lock, &lockh);
/* If we grant any lock at all, it will be a whole-file read lock.
* Call the extent policy function to see if our request can be
* granted, or is blocked.
* If the OST lock has LDLM_FL_HAS_INTENT set, it means a glimpse lock
/* Call the extent policy function to see if our request can be
* granted, or is blocked.
* If the OST lock has LDLM_FL_HAS_INTENT set, it means a glimpse
* lock, and should not be granted if the lock will be blocked.
*/
lock->l_policy_data.l_extent.start = 0;
lock->l_policy_data.l_extent.end = OBD_OBJECT_EOF;
lock->l_req_mode = LCK_PR;
LASSERT(ns == res->lr_namespace);
lock_res(res);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment