pNFS: Stricter ordering of layoutget and layoutreturn
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Tue, 5 Jan 2021 11:43:45 +0000 (06:43 -0500)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Sun, 10 Jan 2021 18:32:52 +0000 (13:32 -0500)
commit2c8d5fc37fe2384a9bdb6965443ab9224d46f704
treed66b7f5df77f0bca9feb1ba8334fb67d9d4e58b6
parentc18d1e17ba2f6a1c9257b0b5d2882a6e3f772673
pNFS: Stricter ordering of layoutget and layoutreturn

If a layout return is in progress, we should wait for it to complete,
in case the layout segment we are picking up gets returned too.

Fixes: 30cb3ee299cb ("pNFS: Handle NFS4ERR_OLD_STATEID on layoutreturn by bumping the state seqid")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/pnfs.c