From: Trond Myklebust Date: Tue, 22 Apr 2008 20:47:55 +0000 (-0400) Subject: SUNRPC: Invalidate the RPCSEC_GSS session if the server dropped the request X-Git-Tag: v2.6.26-rc1~1082^2^2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=b48633bd086d21f4a2a5bea96c7e6c7ba58eb60c;p=linux-2.6-omap-h63xx.git SUNRPC: Invalidate the RPCSEC_GSS session if the server dropped the request RFC 2203 requires the server to drop the request if it believes the RPCSEC_GSS context is out of sequence. The problem is that we have no way on the client to know why the server dropped the request. In order to avoid spinning forever trying to resend the request, the safe approach is therefore to always invalidate the RPCSEC_GSS context on every major timeout. Signed-off-by: Trond Myklebust --- diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c index 8773b4342c9..c6efb982057 100644 --- a/net/sunrpc/clnt.c +++ b/net/sunrpc/clnt.c @@ -1173,6 +1173,11 @@ call_timeout(struct rpc_task *task) clnt->cl_protname, clnt->cl_server); } rpc_force_rebind(clnt); + /* + * Did our request time out due to an RPCSEC_GSS out-of-sequence + * event? RFC2203 requires the server to drop all such requests. + */ + rpcauth_invalcred(task); retry: clnt->cl_stats->rpcretrans++;