NFS: Fix up directory verifier races
authorTrond Myklebust <trondmy@gmail.com>
Wed, 5 Feb 2020 14:01:52 +0000 (09:01 -0500)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Mon, 10 Feb 2020 15:38:48 +0000 (10:38 -0500)
commita1147b8281bda99bda99892233e1900329a9cbf1
tree9a3eaac43b732c5a0f5131307bdaba8c2cf4703a
parentbb6d3fb354c5ee8d6bde2d576eb7220ea09862b9
NFS: Fix up directory verifier races

In order to avoid having our dentry revalidation race with an update
of the directory on the server, we need to store the verifier before
the RPC calls to LOOKUP and READDIR.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Reviewed-by: Benjamin Coddington <bcodding@gmail.com>
Tested-by: Benjamin Coddington <bcodding@gmail.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/dir.c