]> git.baikalelectronics.ru Git - kernel.git/commit
pNFS: Ensure we do clear the return-on-close layout stateid on fatal errors
authorTrond Myklebust <trondmy@gmail.com>
Fri, 20 Sep 2019 11:23:40 +0000 (07:23 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Fri, 20 Sep 2019 19:17:42 +0000 (15:17 -0400)
commit1664234c133761b692586f55fc5bd7f02b7c9398
treee0b3219199c04c391f3eec57ff2ef545916d1618
parentda25cb8daa4fb3bb57e6f63617be2a275d6f0a01
pNFS: Ensure we do clear the return-on-close layout stateid on fatal errors

IF the server rejected our layout return with a state error such as
NFS4ERR_BAD_STATEID, or even a stale inode error, then we do want
to clear out all the remaining layout segments and mark that stateid
as invalid.

Fixes: d94ae4f7054b7 ("pNFS: Enable layoutreturn operation for...")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/pnfs.c