NFS: Ensure contents of struct nfs_open_dir_context are consistent
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Sun, 1 Nov 2020 14:56:18 +0000 (09:56 -0500)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 2 Dec 2020 19:05:51 +0000 (14:05 -0500)
commit2e7a46417952ae480cb5091ed5ade73078630b40
tree6642a612da3a6864039a09f2918e237d951af703
parent05ad917561fca39a03338cb21fe9622f998b0f9c
NFS: Ensure contents of struct nfs_open_dir_context are consistent

Ensure that the contents of struct nfs_open_dir_context are consistent
by setting them under the file->f_lock from a private copy (that is
known to be consistent).

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Reviewed-by: Benjamin Coddington <bcodding@redhat.com>
Tested-by: Benjamin Coddington <bcodding@redhat.com>
Tested-by: Dave Wysochanski <dwysocha@redhat.com>
fs/nfs/dir.c