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
Branch HEAD
[fs/lustre-release.git]
/
lustre
/
ldlm
/
ldlm_lock.c
diff --git
a/lustre/ldlm/ldlm_lock.c
b/lustre/ldlm/ldlm_lock.c
index
3792a4f
..
3e4f1ac
100644
(file)
--- a/
lustre/ldlm/ldlm_lock.c
+++ b/
lustre/ldlm/ldlm_lock.c
@@
-164,6
+164,8
@@
void ldlm_lock_put(struct ldlm_lock *lock)
ldlm_resource_putref(res);
lock->l_resource = NULL;
if (lock->l_export) {
+ LASSERT(atomic_read(&lock->l_export->exp_locks_count) > 0);
+ atomic_dec(&lock->l_export->exp_locks_count);
class_export_put(lock->l_export);
lock->l_export = NULL;
}