Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 294564
b: refs/heads/master
c: e49a29b
h: refs/heads/master
v: v3
  • Loading branch information
Sachin Prabhu authored and Trond Myklebust committed Mar 17, 2012
1 parent b64a0dd commit 3201299
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9390f42546339cf111edd23c16d6cf74ca41974c
refs/heads/master: e49a29bd0eacce9d4956c4daf777a330115b369d
7 changes: 7 additions & 0 deletions trunk/fs/nfs/nfs4state.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,13 +146,20 @@ struct rpc_cred *nfs4_get_renew_cred_locked(struct nfs_client *clp)
struct rpc_cred *cred = NULL;
struct nfs_server *server;

/* Use machine credentials if available */
cred = nfs4_get_machine_cred_locked(clp);
if (cred != NULL)
goto out;

rcu_read_lock();
list_for_each_entry_rcu(server, &clp->cl_superblocks, client_link) {
cred = nfs4_get_renew_cred_server_locked(server);
if (cred != NULL)
break;
}
rcu_read_unlock();

out:
return cred;
}

Expand Down

0 comments on commit 3201299

Please sign in to comment.