]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb8835e14e12ff91b9dbe8cb89790e724f7a3ab17
tree696841c4bd2e1c5ef034436ad62ce8082963a730
parenteba4994b6524054a16b586e5481340a3c79ae7ca
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