]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
NFSv4/pnfs: The layout barrier indicate a minimal value for the seqid
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Fri, 23 Jul 2021 12:57:21 +0000 (08:57 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 18 Sep 2021 11:41:53 +0000 (13:41 +0200)
commita577a9e3a28fa1a9b82218a4807b580d9d63c7a3
tree0d1f2336d2100e3f6e065f9c97eb318337542fd9
parente43ce85c52ad49c9cba484c7c3e97bfe90783c51
NFSv4/pnfs: The layout barrier indicate a minimal value for the seqid

[ Upstream commit d6236a98b3bab07c0a1455fd1ab46f79c3978cdc ]

The intention of the layout barrier is to ensure that we do not update
the layout to match an older value than the current expectation. Fix the
test in pnfs_layout_stateid_blocked() to reflect that it is legal for
the seqid of the stateid to match that of the barrier.

Fixes: aa95edf309ef ("NFSv4/pnfs: Fix the layout barrier update")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/nfs/pnfs.c