mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
NFS: Fix up nfs_ctx_key_to_expire()
If the cached credential exists but doesn't have any expiration callback then exit early. Fix up atomicity issues when replacing the credential with a new one since the existing code could lead to refcount leaks. Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
This commit is contained in:
parent
9019fb391d
commit
ca05cbae2a
3 changed files with 31 additions and 16 deletions
|
@ -81,7 +81,7 @@ struct nfs_open_context {
|
|||
fl_owner_t flock_owner;
|
||||
struct dentry *dentry;
|
||||
const struct cred *cred;
|
||||
struct rpc_cred *ll_cred; /* low-level cred - use to check for expiry */
|
||||
struct rpc_cred __rcu *ll_cred; /* low-level cred - use to check for expiry */
|
||||
struct nfs4_state *state;
|
||||
fmode_t mode;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue