projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e084c1b
)
locks: only remove leases associated with the file being closed
author
Jeff Layton
<jeff.layton@primarydata.com>
Tue, 17 Feb 2015 00:37:42 +0000
(19:37 -0500)
committer
Jeff Layton
<jeff.layton@primarydata.com>
Tue, 17 Feb 2015 20:22:57 +0000
(15:22 -0500)
We don't want to remove all leases just because one filp was closed.
Signed-off-by: Jeff Layton <jeff.layton@primarydata.com>
fs/locks.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/locks.c
b/fs/locks.c
index 7998f670812ce48afcf7701d2da4696976cd34ff..fe8f9f46445bca27a11ba0ee946806abb297e405 100644
(file)
--- a/
fs/locks.c
+++ b/
fs/locks.c
@@
-2435,7
+2435,8
@@
locks_remove_lease(struct file *filp)
spin_lock(&ctx->flc_lock);
list_for_each_entry_safe(fl, tmp, &ctx->flc_lease, fl_list)
- lease_modify(fl, F_UNLCK, &dispose);
+ if (filp == fl->fl_file)
+ lease_modify(fl, F_UNLCK, &dispose);
spin_unlock(&ctx->flc_lock);
locks_dispose_list(&dispose);
}