]> git.baikalelectronics.ru Git - 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)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 16 Mar 2020 12:34:29 +0000 (08:34 -0400)
commit63d42fb8faf68e098314a01850be61a547c2c2f3
tree02c43b0ace26c5a5bd9e002a1b32d822d2012066
parent890ae37aa1e1c37202e75ed67b716044fe1bbc65
NFSv4/pnfs: Return valid stateids in nfs_layout_find_inode_by_stateid()

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: 64664195b0b0 ("pNFS: Delay getting the layout header in CB_LAYOUTRECALL handlers")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/callback_proc.c