pnfs: Don't release the sequence slot until we've processed layoutget on open
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Tue, 22 May 2018 15:17:16 +0000 (11:17 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Aug 2018 05:50:25 +0000 (07:50 +0200)
commit1339e2b8eaea3db8996eeeb6dafd2a0c600ee843
tree69be9e71720f372f1076ade5bfa86115ff817871
parent20fc8b34c1955d0a8dd2e0bca49d287b65f3f9a8
pnfs: Don't release the sequence slot until we've processed layoutget on open

[ Upstream commit ae55e59da0e401893b3c52b575fc18a00623d0a1 ]

If the server recalls the layout that was just handed out, we risk hitting
a race as described in RFC5661 Section 2.10.6.3 unless we ensure that we
release the sequence slot after processing the LAYOUTGET operation that
was sent as part of the OPEN compound.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/nfs4proc.c