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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Apr 2020 08:36:31 +0000 (10:36 +0200)
commit264e3f1597e8f6d45caf815f6883c4c98a8ed056
tree0bf123b42678bfa2bea61aaaa969239c163af5d0
parent07cd4e8f745cab38a608d2aa04972adf2ea0c756
NFSv4/pnfs: Return valid stateids in nfs_layout_find_inode_by_stateid()

[ 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>
fs/nfs/callback_proc.c