pnfs: Fix handling of NFS4ERR_OLD_STATEID replies to layoutreturn
authorTrond Myklebust <trondmy@gmail.com>
Mon, 30 Jul 2018 02:39:15 +0000 (22:39 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Wed, 8 Aug 2018 20:50:01 +0000 (16:50 -0400)
commitc16467dc03db5e2532484026a25b0eef80012ea1
treeeed5b981f465ef9d187db1eb1c22a1bc90cd8d6c
parent8d4fb8ff427a23e573c9373b2bb3d1d6e8ea4399
pnfs: Fix handling of NFS4ERR_OLD_STATEID replies to layoutreturn

If the server tells us that out layoutreturn raced with another layout
update, then we must ensure that the new layout segments are not in use
before we resend with an updated layout stateid.

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