diff options
author | Trond Myklebust <trond.myklebust@hammerspace.com> | 2021-05-11 23:41:10 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-07-20 16:16:11 +0200 |
commit | e409580b19ec7923082e90c1ec9505aa0867f21d (patch) | |
tree | fbd984149e6910abd00971dd3f10d4bd31f93f10 /include/linux | |
parent | 291ddd4e9c5352a4aace1dfb4f3100c743cd87c7 (diff) | |
download | linux-stable-e409580b19ec7923082e90c1ec9505aa0867f21d.tar.gz linux-stable-e409580b19ec7923082e90c1ec9505aa0867f21d.tar.bz2 linux-stable-e409580b19ec7923082e90c1ec9505aa0867f21d.zip |
NFS: nfs_find_open_context() may only select open files
[ Upstream commit e97bc66377bca097e1f3349ca18ca17f202ff659 ]
If a file has already been closed, then it should not be selected to
support further I/O.
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
[Trond: Fix an invalid pointer deref reported by Colin Ian King]
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/nfs_fs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/nfs_fs.h b/include/linux/nfs_fs.h index a0831e9d19c9..0ff7dd2bf8a4 100644 --- a/include/linux/nfs_fs.h +++ b/include/linux/nfs_fs.h @@ -78,6 +78,7 @@ struct nfs_open_context { #define NFS_CONTEXT_RESEND_WRITES (1) #define NFS_CONTEXT_BAD (2) #define NFS_CONTEXT_UNLOCK (3) +#define NFS_CONTEXT_FILE_OPEN (4) int error; struct list_head list; |