]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
NFSv4/pNFS: Always allow update of a zero valued layout barrier
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Fri, 23 Jul 2021 12:57:20 +0000 (08:57 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 18 Sep 2021 11:41:53 +0000 (13:41 +0200)
commite43ce85c52ad49c9cba484c7c3e97bfe90783c51
tree7c93aa742617705ac99b155af95be9a2f2a96c41
parent43d3be7a9e067acde2fccfb666c07526cc8ece02
NFSv4/pNFS: Always allow update of a zero valued layout barrier

[ Upstream commit 45baadaad7bf9183651fb74f4ed1200da48505a5 ]

A zero value for the layout barrier indicates that it has been cleared
(since seqid '0' is an illegal value), so we should always allow it to
be updated.

Fixes: d29b468da4f9 ("pNFS/NFSv4: Improve rejection of out-of-order layouts")
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