summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@hammerspace.com>2021-05-11 23:41:10 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-07-20 16:10:48 +0200
commitae1a6af2f8f85f44aeb80f0a14bbbfc9bdd2efb6 (patch)
tree18c1d68763059b6a0bc6addf5a2b787798e3399d /include/linux
parent04a333cf982ce9c14026edc43239f1fd340bbdfe (diff)
downloadlinux-stable-ae1a6af2f8f85f44aeb80f0a14bbbfc9bdd2efb6.tar.gz
linux-stable-ae1a6af2f8f85f44aeb80f0a14bbbfc9bdd2efb6.tar.bz2
linux-stable-ae1a6af2f8f85f44aeb80f0a14bbbfc9bdd2efb6.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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/nfs_fs.h b/include/linux/nfs_fs.h
index ad09c0cc5464..978ef674f038 100644
--- a/include/linux/nfs_fs.h
+++ b/include/linux/nfs_fs.h
@@ -79,6 +79,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;