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:40:13 +0000 (13:40 +0200)
commit2a542421eb7f489af1ff7672fa2d474870780182
tree550a45aa879cc0e4783a9dba909411b79f4025fb
parent4b96edea5cd1b77bef855a51ecabfb3579f8b7bc
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