pNFS/NFSv4: Improve rejection of out-of-order layouts
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Fri, 22 Jan 2021 15:05:51 +0000 (10:05 -0500)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 25 Jan 2021 01:52:31 +0000 (20:52 -0500)
commitd29b468da4f940bd2bff2628ba8d2d652671d244
tree67dc6f989328a3881b5e165f6fe4401bf6756ed4
parent1bcf34fdac5f8c2fcd16796495db75744612ca27
pNFS/NFSv4: Improve rejection of out-of-order layouts

If a layoutget ends up being reordered w.r.t. a layoutreturn, e.g. due
to a layoutget-on-open not knowing a priori which file to lock, then we
must assume the layout is no longer being considered valid state by the
server.
Incrementally improve our ability to reject such states by using the
cached old stateid in conjunction with the plh_barrier to try to
identify them.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/pnfs.c