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-5266 ldlm: granting the same lock twice on recovery
[fs/lustre-release.git]
/
lustre
/
fld
/
fld_handler.c
diff --git
a/lustre/fld/fld_handler.c
b/lustre/fld/fld_handler.c
index
fbf0369
..
eae79ea
100644
(file)
--- a/
lustre/fld/fld_handler.c
+++ b/
lustre/fld/fld_handler.c
@@
-180,7
+180,10
@@
int fld_update_from_controller(const struct lu_env *env,
if (lsra->lsra_lsr[i].lsr_index != index)
GOTO(out, rc = -EINVAL);
+ mutex_lock(&fld->lsf_lock);
rc1 = fld_insert_entry(env, fld, &lsra->lsra_lsr[i]);
+ mutex_unlock(&fld->lsf_lock);
+
if (rc1 != 0)
GOTO(out, rc = rc1);
}