pNFS/NFSv4: Update the layout barrier when we schedule a layoutreturn
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Thu, 21 Jan 2021 18:51:50 +0000 (13:51 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Feb 2021 22:28:47 +0000 (23:28 +0100)
commitd46c0d64dbcdba0181505977193cc05c2a87d7ea
tree9fb2bb2223532560d6cad69cbb2e5dda2bc7a495
parentdba0d4b1508bdd981dca1cc5611e172c527787ba
pNFS/NFSv4: Update the layout barrier when we schedule a layoutreturn

[ Upstream commit 1bcf34fdac5f8c2fcd16796495db75744612ca27 ]

When we're scheduling a layoutreturn, we need to ignore any further
incoming layouts with sequence ids that are going to be affected by the
layout return.

Fixes: 44ea8dfce021 ("NFS/pnfs: Reference the layout cred in pnfs_prepare_layoutreturn()")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/nfs/pnfs.c