aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/locks.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/locks.c b/fs/locks.c
index 7998f670812c..fe8f9f46445b 100644
--- a/fs/locks.c
+++ b/fs/locks.c
@@ -2435,7 +2435,8 @@ locks_remove_lease(struct file *filp)
2435 2435
2436 spin_lock(&ctx->flc_lock); 2436 spin_lock(&ctx->flc_lock);
2437 list_for_each_entry_safe(fl, tmp, &ctx->flc_lease, fl_list) 2437 list_for_each_entry_safe(fl, tmp, &ctx->flc_lease, fl_list)
2438 lease_modify(fl, F_UNLCK, &dispose); 2438 if (filp == fl->fl_file)
2439 lease_modify(fl, F_UNLCK, &dispose);
2439 spin_unlock(&ctx->flc_lock); 2440 spin_unlock(&ctx->flc_lock);
2440 locks_dispose_list(&dispose); 2441 locks_dispose_list(&dispose);
2441} 2442}