pNFS/NFSv4: Try to return invalid layout in pnfs_layout_process()
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Thu, 21 Jan 2021 22:11:42 +0000 (17:11 -0500)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 25 Jan 2021 01:52:30 +0000 (20:52 -0500)
commit08bd8dbe88825760e953759d7ec212903a026c75
tree5018659dd3b807789a1d4fdda3388bdba0e91a27
parent814b84971388cd5fb182f2e914265b3827758455
pNFS/NFSv4: Try to return invalid layout in pnfs_layout_process()

If the server returns a new stateid that does not match the one in our
cache, then try to return the one we hold instead of just invalidating
it on the client side. This ensures that both client and server will
agree that the stateid is invalid.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/pnfs.c