提交 c4e136cd 编写于 作者: J Jeff Layton

locks: only remove leases associated with the file being closed

We don't want to remove all leases just because one filp was closed.
Signed-off-by: NJeff Layton <jeff.layton@primarydata.com>
上级 e084c1bd
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册