summaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifsglob.h
diff options
context:
space:
mode:
authorRohith Surabattula <rohiths@microsoft.com>2021-08-09 11:32:46 +0200
committerSteve French <stfrench@microsoft.com>2021-08-12 18:29:58 +0200
commit9e992755be8f2d458a0bcbefd19e493483c1dba2 (patch)
treef2d011d7355544948986ce55a2797ec494526906 /fs/cifs/cifsglob.h
parentcifs: Handle race conditions during rename (diff)
downloadlinux-9e992755be8f2d458a0bcbefd19e493483c1dba2.tar.xz
linux-9e992755be8f2d458a0bcbefd19e493483c1dba2.zip
cifs: Call close synchronously during unlink/rename/lease break.
During unlink/rename/lease break, deferred work for close is scheduled immediately but in an asynchronous manner which might lead to race with actual(unlink/rename) commands. This change will schedule close synchronously which will avoid the race conditions with other commands. Signed-off-by: Rohith Surabattula <rohiths@microsoft.com> Reviewed-by: Shyam Prasad N <sprasad@microsoft.com> Cc: stable@vger.kernel.org # 5.13 Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs/cifsglob.h')
-rw-r--r--fs/cifs/cifsglob.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h
index c0bfc2f01030..c6a9542ca281 100644
--- a/fs/cifs/cifsglob.h
+++ b/fs/cifs/cifsglob.h
@@ -1611,6 +1611,11 @@ struct dfs_info3_param {
int ttl;
};
+struct file_list {
+ struct list_head list;
+ struct cifsFileInfo *cfile;
+};
+
/*
* common struct for holding inode info when searching for or updating an
* inode with new info