aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifsglob.h
diff options
context:
space:
mode:
authorRohith Surabattula <rohiths@microsoft.com>2021-09-17 16:50:40 -0500
committerSteve French <stfrench@microsoft.com>2021-09-17 16:59:41 -0500
commit35866f3f779aef5e7ba84e4d1023fe2e2a0e219e (patch)
tree2063194831932398b8073ec07c2f4d772e8db35b /fs/cifs/cifsglob.h
parentcifs: Fix soft lockup during fsstress (diff)
downloadlinux-dev-35866f3f779aef5e7ba84e4d1023fe2e2a0e219e.tar.xz
linux-dev-35866f3f779aef5e7ba84e4d1023fe2e2a0e219e.zip
cifs: Not to defer close on file when lock is set
Close file immediately when lock is set. Cc: stable@vger.kernel.org # 5.13+ Signed-off-by: Rohith Surabattula <rohiths@microsoft.com> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs/cifsglob.h')
-rw-r--r--fs/cifs/cifsglob.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h
index 7dd9878e26bf..e916470468ea 100644
--- a/fs/cifs/cifsglob.h
+++ b/fs/cifs/cifsglob.h
@@ -1399,6 +1399,7 @@ struct cifsInodeInfo {
#define CIFS_INO_INVALID_MAPPING (4) /* pagecache is invalid */
#define CIFS_INO_LOCK (5) /* lock bit for synchronization */
#define CIFS_INO_MODIFIED_ATTR (6) /* Indicate change in mtime/ctime */
+#define CIFS_INO_CLOSE_ON_LOCK (7) /* Not to defer the close when lock is set */
unsigned long flags;
spinlock_t writers_lock;
unsigned int writers; /* Number of writers on this inode */