]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
NFSv4: Fix lookup revalidate of regular files
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Fri, 28 Sep 2018 16:42:51 +0000 (12:42 -0400)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Aug 2019 09:18:49 +0000 (11:18 +0200)
commite8f486e893147ddbda859e37f7abe2e7f6ab9e69
tree8ccc45f38b9fdd451817c28a145d51c5f2894a69
parent4fadc21d3134a30ecfe3570122191881b2c255d8
NFSv4: Fix lookup revalidate of regular files

BugLink: https://bugs.launchpad.net/bugs/1839213
commit c7944ebb9ce9461079659e9e6ec5baaf73724b3b upstream.

If we're revalidating an existing dentry in order to open a file, we need
to ensure that we check the directory has not changed before we optimise
away the lookup.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Qian Lu <luqia@amazon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
fs/nfs/dir.c