aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@fys.uio.no>2005-01-04 21:39:55 +0100
committerTrond Myklebust <trond.myklebust@fys.uio.no>2005-01-04 21:39:55 +0100
commit6ab930be22e98edf9235219c195b8cc2c5cdb1bd (patch)
tree085c8238856896bc827add390e9b228b1f4c9139 /net
parentaeca3b58e0591cd5cc114fcb6b1e488378bf40a9 (diff)
downloadhistory-6ab930be22e98edf9235219c195b8cc2c5cdb1bd.tar.gz
RPC: The RPCAUTH_CRED_DEAD flag had been unused for some time before I
unwisely revived it for use with the gss code. Having removed that use from the gss code, it's time to remove all references to it. Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu> Signed-off-by: Trond Myklebust <trond.myklebust@fys.uio.no>
Diffstat (limited to 'net')
-rw-r--r--net/sunrpc/auth.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/net/sunrpc/auth.c b/net/sunrpc/auth.c
index 91d325e62953f3..001e03df0f3cd7 100644
--- a/net/sunrpc/auth.c
+++ b/net/sunrpc/auth.c
@@ -214,8 +214,6 @@ retry:
list_for_each_safe(pos, next, &auth->au_credcache[nr]) {
struct rpc_cred *entry;
entry = list_entry(pos, struct rpc_cred, cr_hash);
- if (entry->cr_flags & RPCAUTH_CRED_DEAD)
- continue;
if (rpcauth_prune_expired(entry, &free))
continue;
if (entry->cr_ops->crmatch(acred, entry, taskflags)) {
@@ -307,9 +305,6 @@ put_rpccred(struct rpc_cred *cred)
if (!atomic_dec_and_lock(&cred->cr_count, &rpc_credcache_lock))
return;
- if ((cred->cr_flags & RPCAUTH_CRED_DEAD) && !list_empty(&cred->cr_hash))
- list_del_init(&cred->cr_hash);
-
if (list_empty(&cred->cr_hash)) {
spin_unlock(&rpc_credcache_lock);
rpcauth_crdestroy(cred);
@@ -413,10 +408,3 @@ rpcauth_uptodatecred(struct rpc_task *task)
return !(task->tk_msg.rpc_cred) ||
(task->tk_msg.rpc_cred->cr_flags & RPCAUTH_CRED_UPTODATE);
}
-
-int
-rpcauth_deadcred(struct rpc_task *task)
-{
- return !(task->tk_msg.rpc_cred) ||
- (task->tk_msg.rpc_cred->cr_flags & RPCAUTH_CRED_DEAD);
-}