NFSv4/pnfs: Fix layoutget behaviour after invalidation
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Fri, 2 Jul 2021 23:48:41 +0000 (19:48 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Jul 2021 14:05:53 +0000 (16:05 +0200)
commit885c0cc2acfe2c52253b80c92b53f63cbcbdcf31
tree28ae89fe147b4c831fc0c36c1ca98cef41e531d1
parenta668a77e6aedfd3ca2ef6c4a8883e5177bffd905
NFSv4/pnfs: Fix layoutget behaviour after invalidation

[ Upstream commit 0b77f97a7e42adc72bd566ff8cb733ea426f74f6 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/nfs/pnfs.c