OSDN Git Service

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)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Thu, 31 May 2018 19:03:12 +0000 (15:03 -0400)
commitae55e59da0e401893b3c52b575fc18a00623d0a1
tree44467021cc3ac279cb70b829625eb031c7a3d9d5
parent32f1c28f3d453f4652948ab9298078874d1a56b6
pnfs: Don't release the sequence slot until we've processed layoutget on open

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>
fs/nfs/nfs4proc.c