diff options
author | Bharath SM <bharathsm@microsoft.com> | 2023-04-26 14:05:16 +0000 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2023-04-27 11:03:33 -0500 |
commit | d906be3fa571f6fc9381911304a0eca99f1b6951 (patch) | |
tree | 9ccc00d515b23bdd6c1c0bdb2d6cd66f3725f259 /fs/cifs/misc.c | |
parent | ab9ddc87a9055c4bebd6524d5d761d605d52e557 (diff) |
SMB3: Close deferred file handles in case of handle lease break
We should not cache deferred file handles if we dont have
handle lease on a file. And we should immediately close all
deferred handles in case of handle lease break.
Fixes: 9e31678fb403 ("SMB3: fix lease break timeout when multiple deferred close handles for the same file.")
Signed-off-by: Bharath SM <bharathsm@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs/misc.c')
-rw-r--r-- | fs/cifs/misc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/misc.c b/fs/cifs/misc.c index f76e9bb7d742..cd914be905b2 100644 --- a/fs/cifs/misc.c +++ b/fs/cifs/misc.c @@ -764,7 +764,7 @@ cifs_close_deferred_file(struct cifsInodeInfo *cifs_inode) spin_unlock(&cifs_inode->open_file_lock); list_for_each_entry_safe(tmp_list, tmp_next_list, &file_head, list) { - _cifsFileInfo_put(tmp_list->cfile, true, false); + _cifsFileInfo_put(tmp_list->cfile, false, false); list_del(&tmp_list->list); kfree(tmp_list); } |