pNFS/flexfiles: When mirrored, retry failed reads by switching mirrors
authorTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 2 Nov 2015 15:11:17 +0000 (10:11 -0500)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 2 Nov 2015 18:50:35 +0000 (13:50 -0500)
commit135444126a1175912b43366f6109cb297018f034
treeb16d9fbad0053f1949873af5f3793443495c9364
parenta85240d2543e1947868d81aab44e36bea6bb876e
pNFS/flexfiles: When mirrored, retry failed reads by switching mirrors

If the pNFS/flexfiles file is mirrored, and a read to one mirror fails,
then we should bump the mirror index, so that we retry to a different
mirror. Once we've iterated through all mirrors and all failed, we can
return the layout and issue a new LAYOUTGET.

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