]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 7 Oct 2020 06:02:51 +0000 (08:02 +0200)
commit63cd394fa3f04eab24b9d8cfbad38b2b1da4cca2
tree0c91e7e763ecf5c86da664fc8641511ed583116b
parentac376f2245bb790472112154b7f87ffb613e65f5
pNFS/flexfiles: Ensure we initialise the mirror bsizes correctly on read

[ Upstream commit ee15c7b53e52fb04583f734461244c4dcca828fa ]

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: Sasha Levin <sashal@kernel.org>
fs/nfs/flexfilelayout/flexfilelayout.c