]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: nfs_find_open_context() may only select open files
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 12 May 2021 03:41:10 +0000 (23:41 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Tue, 29 Jun 2021 17:12:39 +0000 (13:12 -0400)
commitacda6464d4a3a1e1056282e814472d44699b708d
tree12093332810a92c0eae0ab0717e3c4353a4ac0d6
parent01a73420dc645d5d7e56ff6e22b4278c18af4ebd
NFS: nfs_find_open_context() may only select open files

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]
fs/nfs/inode.c
include/linux/nfs_fs.h