pNFS/flexfiles: If the layout is invalid, it must be updated before retrying
authorTrond Myklebust <trond.myklebust@primarydata.com>
Sat, 18 Feb 2017 00:49:09 +0000 (19:49 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 12 Mar 2017 05:41:51 +0000 (06:41 +0100)
commitc65db336d6c6f82e30e0bdb771517297db8e880e
tree0f47da63f8f515c5c2353b0ea14e57159471276e
parent77bbc0c7712a43442e2637247eaa4f01f73f0eb8
pNFS/flexfiles: If the layout is invalid, it must be updated before retrying

commit df3ab232e462bce20710596d697ade6b72497694 upstream.

If we see that our pNFS READ/WRITE/COMMIT operation failed, but we
also see that our layout segment is no longer valid, then we need to
get a new layout segment before retrying.

Fixes: 90816d1ddacf ("NFSv4.1/flexfiles: Don't mark the entire deviceid...")
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/flexfilelayout/flexfilelayout.c