NFSv4/pNFS: Always return layout stats on layout return for flexfiles
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 24 Aug 2022 20:56:48 +0000 (16:56 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Mon, 3 Oct 2022 15:26:37 +0000 (11:26 -0400)
commit90377158bd2d2acd20e6131e84c234d715b7aa42
tree5f6cb8137bdfa5b48f7066feb66fe7d1e4f143bf
parent0dd7439f382518e9997cfa7ca9d06799dbeb33fa
NFSv4/pNFS: Always return layout stats on layout return for flexfiles

We want to ensure that the server never misses the layout stats when
we're closing the file, so that it knows whether or not to update its
internal state. Otherwise, if we were racing with a layout stat, we
might cause the server to invalidate its layout before the layout stat
got processed.

Fixes: 06946c6a3d8b ("pNFS/flexfiles: Only send layoutstats updates for mirrors that were updated")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/flexfilelayout/flexfilelayout.c