NFSv4.1: Close callback races for OPEN, LAYOUTGET and LAYOUTRETURN
authorTrond Myklebust <trond.myklebust@primarydata.com>
Sun, 28 Aug 2016 15:50:26 +0000 (11:50 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Sun, 28 Aug 2016 18:23:27 +0000 (14:23 -0400)
commit2e80dbe7ac51a911e8a828407b1a48c5ba938cd2
tree696841c4bd2e1c5ef034436ad62ce8082963a730
parent07e8dcbda71ef87e9cbdc42b5bb16a44c1ab839b
NFSv4.1: Close callback races for OPEN, LAYOUTGET and LAYOUTRETURN

Defer freeing the slot until after we have processed the results from
OPEN and LAYOUTGET. This means that the server can rely on the
mechanism in RFC5661 Section 2.10.6.3 to ensure that replies to an
OPEN or LAYOUTGET/RETURN RPC call don't race with the callbacks that
apply to them.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/nfs4proc.c