]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
NFSv4/pnfs: Return valid stateids in nfs_layout_find_inode_by_stateid()
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Thu, 27 Feb 2020 16:01:12 +0000 (11:01 -0500)
committerStefan Bader <stefan.bader@canonical.com>
Thu, 14 May 2020 08:54:00 +0000 (10:54 +0200)
commitfb79216aad72db6d192cabac177bbcd7693f9f29
tree3e8efc40b8d8bde3b594830c9d2714f44fb5d732
parent37312887a831c47cf608c3df6c6a1d119a01d81f
NFSv4/pnfs: Return valid stateids in nfs_layout_find_inode_by_stateid()

BugLink: https://bugs.launchpad.net/bugs/1875506
[ Upstream commit d911c57a19551c6bef116a3b55c6b089901aacb0 ]

Make sure to test the stateid for validity so that we catch instances
where the server may have been reusing stateids in
nfs_layout_find_inode_by_stateid().

Fixes: 7b410d9ce460 ("pNFS: Delay getting the layout header in CB_LAYOUTRECALL handlers")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
fs/nfs/callback_proc.c