]> git.baikalelectronics.ru Git - kernel.git/commit
NFSv4: Handle timeouts correctly when probing for lease validity
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 8 Apr 2013 21:50:28 +0000 (17:50 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 8 Apr 2013 22:01:59 +0000 (18:01 -0400)
commit7f08d9c8468e165c9efde324b33e35b289ad7bd4
tree3c4d9053ef255e1e21058b94013c6e059b27c735
parentf18e5e292d688ae60515dc6f28788f7387d44ec1
NFSv4: Handle timeouts correctly when probing for lease validity

When we send a RENEW or SEQUENCE operation in order to probe if the
lease is still valid, we want it to be able to time out since the
lease we are probing is likely to time out too. Currently, because
we use soft mount semantics for these RPC calls, the return value
is EIO, which causes the state manager to exit with an "unhandled
error" message.
This patch changes the call semantics, so that the RPC layer returns
ETIMEDOUT instead of EIO. We then have the state manager default to
a simple retry instead of exiting.

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