pNFS/flexfiles: Fix layoutstats handling during read failovers
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Sat, 23 Mar 2019 03:03:56 +0000 (23:03 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Sat, 23 Mar 2019 16:03:58 +0000 (12:03 -0400)
commit166bd5b889ac61369c34650887a5c6b899f5e976
treefa22dd126ec235b34fe3d26328aa8b7f4b0b5aeb
parent5a698243930c441afccec04e4d5dc8febfd2b775
pNFS/flexfiles: Fix layoutstats handling during read failovers

During a read failover, we may end up changing the value of
the pgio_mirror_idx, so make sure that we record the layout
stats before that update.

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