pNFS/flexfiles: Ensure we initialise the mirror bsizes correctly on read
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Fri, 18 Sep 2020 12:58:58 +0000 (08:58 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Fri, 18 Sep 2020 13:21:10 +0000 (09:21 -0400)
commitee15c7b53e52fb04583f734461244c4dcca828fa
treee4f5903045fa978e044632295daad49ecc4583ce
parent16abd2a0c124a6c3543c88ca4c53c997c9fb4114
pNFS/flexfiles: Ensure we initialise the mirror bsizes correctly on read

While it is true that reading from an unmirrored source always uses
index 0, that is no longer true for mirrored sources when we fail over.

Fixes: 563c53e73b8b ("NFS: Fix flexfiles read failover")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/flexfilelayout/flexfilelayout.c