NFSv4/pnfs: Fix layoutget behaviour after invalidation
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Fri, 2 Jul 2021 23:48:41 +0000 (19:48 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Thu, 8 Jul 2021 18:03:26 +0000 (14:03 -0400)
commit0b77f97a7e42adc72bd566ff8cb733ea426f74f6
tree4d1aee9735e977088e1bd02837aae42d52620797
parentaa95edf309ef31e2df4a37ebf0e5c2ca2a6772ab
NFSv4/pnfs: Fix layoutget behaviour after invalidation

If the layout gets invalidated, we should wait for any outstanding
layoutget requests for that layout to complete, and we should resend
them only after re-establishing the layout stateid.

Fixes: d29b468da4f9 ("pNFS/NFSv4: Improve rejection of out-of-order layouts")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/pnfs.c