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)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Wed, 22 Feb 2017 15:49:37 +0000 (10:49 -0500)
commitdf3ab232e462bce20710596d697ade6b72497694
tree8c83e0c9c9bdfae57967267a10cfd368e6f3974c
parent686a816ab6bedb99a892f3171f6c9ccecabff180
pNFS/flexfiles: If the layout is invalid, it must be updated before retrying

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...")
Cc: stable@vger.kernel.org # v4.2+
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/flexfilelayout/flexfilelayout.c