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-4488 build: fix compilation with --enable-invariants
[fs/lustre-release.git]
/
lustre
/
obdclass
/
cl_lock.c
diff --git
a/lustre/obdclass/cl_lock.c
b/lustre/obdclass/cl_lock.c
index
d440da9
..
58ca3f3
100644
(file)
--- a/
lustre/obdclass/cl_lock.c
+++ b/
lustre/obdclass/cl_lock.c
@@
-2053,8
+2053,8
@@
void cl_lock_hold_add(const struct lu_env *env, struct cl_lock *lock,
LASSERT(lock->cll_state != CLS_FREEING);
ENTRY;
- cl_lock_hold_mod(env, lock, +1);
cl_lock_get(lock);
+ cl_lock_hold_mod(env, lock, +1);
lu_ref_add(&lock->cll_holders, scope, source);
lu_ref_add(&lock->cll_reference, scope, source);
EXIT;