OSDN Git Service

pNFS/flexfiles: Ensure we initialise the mirror bsizes correctly on read
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Fri, 18 Sep 2020 19:29:58 +0000 (15:29 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Mon, 21 Sep 2020 15:57:26 +0000 (11:57 -0400)
commitc0a1d129d3e01751d410343cb8e4a694716ca825
tree24ae0bcbeabf7c8df9eddc7185f664de43e33bf7
parent68274f97aeb6ebcd74c391ddbff0b517b9b0ca0f
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>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/flexfilelayout/flexfilelayout.c