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
- Modify ldlm_completion_ast to wake up when locks are cancelled as well as
[fs/lustre-release.git]
/
lustre
/
ldlm
/
ldlm_lock.c
diff --git
a/lustre/ldlm/ldlm_lock.c
b/lustre/ldlm/ldlm_lock.c
index
a17a27a
..
bb3119b
100644
(file)
--- a/
lustre/ldlm/ldlm_lock.c
+++ b/
lustre/ldlm/ldlm_lock.c
@@
-210,6
+210,10
@@
void ldlm_lock_destroy(struct ldlm_lock *lock)
lock->l_export = NULL;
lock->l_flags |= LDLM_FL_DESTROYED;
+ /* Wake anyone waiting for this lock */
+ if (lock->l_completion_ast)
+ lock->l_completion_ast(lock, 0);
+
l_unlock(&lock->l_resource->lr_namespace->ns_lock);
LDLM_LOCK_PUT(lock);
EXIT;