[LU-8209] glimpse lock request does not engage ELC to drop unneeded locks Created: 26/May/16 Updated: 21/Dec/18 Resolved: 08/Oct/16 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | Lustre 2.9.0 |
| Type: | Bug | Priority: | Major |
| Reporter: | Oleg Drokin | Assignee: | Hongchao Zhang |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Severity: | 3 | ||||||||
| Rank (Obsolete): | 9223372036854775807 | ||||||||
| Description |
|
It appears that with conversion to clio this important bit of funcionality that allows us to balance lock counts on clients was lost. Vitaly tracked it to this patch: commit fd908da92ccd9aab4ffc3d2463301831260c0474
Author: huanghua <huanghua>
Date: Thu Feb 7 08:07:16 2008 +0000
b=14149
i=yong.fan
i=rahul.deshmukh
i=nikita.danilov
- use req_capsule interface for client.
- add some interoperability support on server side.
The removal seems to be accidental. |
| Comments |
| Comment by Bruno Faccini (Inactive) [ 27/May/16 ] |
|
Well, if I correctly understand, this means that presently in current master, ldlm_cli_enqueue() does not call ldlm_prep_[enqueue,elc]_req() but this is left to upper layer/callers responsibility to track for/submit eligible locks, right? Based on this now, my understanding is that : What do you think? Did I miss something there ? |
| Comment by Vitaly Fertman [ 05/Jul/16 ] |
|
err... the opposite. the glimpse works fine. others are not, because of: @@ -646,7 +650,10 @@ int ldlm_cli_enqueue(struct obd_export *exp, struct ptlrpc_request **reqp,
/* lock not sent to server yet */
if (reqp == NULL || *reqp == NULL) {
- req = ldlm_prep_enqueue_req(exp, 2, size, NULL, 0);
+ req = ptlrpc_request_alloc_pack(class_exp2cliimp(exp),
+ &RQF_LDLM_ENQUEUE,
+ LUSTRE_DLM_VERSION,
+ LDLM_ENQUEUE);
if (req == NULL) {
failed_lock_cleanup(ns, lock, lockh, einfo->ei_mode);
LDLM_LOCK_PUT(lock);
|
| Comment by Gerrit Updater [ 05/Aug/16 ] |
|
Hongchao Zhang (hongchao.zhang@intel.com) uploaded a new patch: http://review.whamcloud.com/21739 |
| Comment by Gerrit Updater [ 08/Oct/16 ] |
|
Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/21739/ |
| Comment by Peter Jones [ 08/Oct/16 ] |
|
Landed for 2.9 |