Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-13645 ldlm: extra checks for DOM locks
[fs/lustre-release.git]
/
lustre
/
mdt
/
mdt_lproc.c
diff --git
a/lustre/mdt/mdt_lproc.c
b/lustre/mdt/mdt_lproc.c
index
452c7cc
..
3dc1b07
100644
(file)
--- a/
lustre/mdt/mdt_lproc.c
+++ b/
lustre/mdt/mdt_lproc.c
@@
-981,6
+981,9
@@
static ssize_t dom_lock_store(struct kobject *kobj, struct attribute *attr,
return rc;
}
+ if (val == ALWAYS_DOM_LOCK_ON_OPEN)
+ val = TRYLOCK_DOM_ON_OPEN;
+
if (val < 0 || val >= NUM_DOM_LOCK_ON_OPEN_MODES)
return -EINVAL;