diff options
author | 2020-05-11 10:42:04 -0400 | |
---|---|---|
committer | 2020-05-11 14:06:51 -0400 | |
commit | f304a809a9f1eec23e023f3aae6c768a08495244 (patch) | |
tree | 8f56444982927a527667e808220cb7fcc895c63d | |
parent | Merge tag 'fscache-fixes-20200508-2' of git://git.kernel.org/pub/scm/linux/ke... (diff) | |
download | linux-f304a809a9f1eec23e023f3aae6c768a08495244.tar.gz linux-f304a809a9f1eec23e023f3aae6c768a08495244.tar.bz2 linux-f304a809a9f1eec23e023f3aae6c768a08495244.zip |
NFS: Don't use RPC_TASK_CRED_NOREF with delegreturn
We are not guaranteed that the credential will remain pinned.
Fixes: 612965072020 ("NFSv4: Avoid referencing the cred unnecessarily during NFSv4 I/O")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
-rw-r--r-- | fs/nfs/nfs4proc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index a0c1e653a935..9056f3dd380e 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c @@ -6347,7 +6347,7 @@ static int _nfs4_proc_delegreturn(struct inode *inode, const struct cred *cred, .rpc_client = server->client, .rpc_message = &msg, .callback_ops = &nfs4_delegreturn_ops, - .flags = RPC_TASK_ASYNC | RPC_TASK_CRED_NOREF | RPC_TASK_TIMEOUT, + .flags = RPC_TASK_ASYNC | RPC_TASK_TIMEOUT, }; int status = 0; |