]> git.baikalelectronics.ru Git - kernel.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)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Fri, 18 Sep 2020 13:21:10 +0000 (09:21 -0400)
commitc8a5357350aa55fcaf866541d48d6a0c9605dc5b
treee4f5903045fa978e044632295daad49ecc4583ce
parent6af29b44879de4ad8fff89f41ddc56512a255d9e
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: af6135de43ef ("NFS: Fix flexfiles read failover")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/flexfilelayout/flexfilelayout.c