]> git.baikalelectronics.ru Git - kernel.git/commit
SUNRPC: Don't change the RPCSEC_GSS context on a credential that is in use
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 17 Apr 2008 21:03:58 +0000 (17:03 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Sat, 19 Apr 2008 20:55:19 +0000 (16:55 -0400)
commit8fe92deff97f0144547e3fee5c82304bec2250e6
treeac5e563e23a26519ac5b48f0c2a46cc0f8a3c7cf
parent42a410769f32c670acd47502b145c1f14745038c
SUNRPC: Don't change the RPCSEC_GSS context on a credential that is in use

When a server rejects our credential with an AUTH_REJECTEDCRED or similar,
we need to refresh the credential and then retry the request.
However, we do want to allow any requests that are in flight to finish
executing, so that we can at least attempt to process the replies that
depend on this instance of the credential.

The solution is to ensure that gss_refresh() looks up an entirely new
RPCSEC_GSS credential instead of attempting to create a context for the
existing invalid credential.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
net/sunrpc/auth_gss/auth_gss.c