]> git.baikalelectronics.ru Git - kernel.git/commit
NFSv4: Release the sequence id before restarting a CLOSE rpc call
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 15 Dec 2009 19:47:36 +0000 (14:47 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 15 Dec 2009 19:47:36 +0000 (14:47 -0500)
commitc20170ad2bad3bda7ef98f924b333dc738842740
tree1669a3a5e7d30e71451cd975161506b84bf6b1ad
parentbde34cd87cbf2029b5b2371a780ebe176926ab04
NFSv4: Release the sequence id before restarting a CLOSE rpc call

If the CLOSE or OPEN_DOWNGRADE call triggers a state recovery, and has
to be resent, then we must release the seqid. Otherwise the open
recovery will wait for the close to finish, which causes a deadlock.

This is mainly a NFSv4.1 problem, although it can theoretically happen
with NFSv4.0 too, in a OPEN_DOWNGRADE situation.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/nfs4_fs.h
fs/nfs/nfs4proc.c
fs/nfs/nfs4state.c