diff options
author | Trond Myklebust <trond.myklebust@hammerspace.com> | 2020-02-08 01:25:56 +0100 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@hammerspace.com> | 2020-03-16 13:34:29 +0100 |
commit | 542b994bdb2662d38f1a400adf3e5da3adceb50d (patch) | |
tree | 95167f966308711395abbf888e5f5348c9df2f7a /fs/nfs/write.c | |
parent | SUNRPC: Don't take a reference to the cred on synchronous tasks (diff) | |
download | linux-542b994bdb2662d38f1a400adf3e5da3adceb50d.tar.xz linux-542b994bdb2662d38f1a400adf3e5da3adceb50d.zip |
NFS: Assume cred is pinned by open context in I/O requests
In read/write/commit, we should be able to assume that the cred is
pinned by the open context.
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'fs/nfs/write.c')
-rw-r--r-- | fs/nfs/write.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/write.c b/fs/nfs/write.c index c478b772cc49..5544ee6cfda8 100644 --- a/fs/nfs/write.c +++ b/fs/nfs/write.c @@ -1707,7 +1707,7 @@ int nfs_initiate_commit(struct rpc_clnt *clnt, struct nfs_commit_data *data, .callback_ops = call_ops, .callback_data = data, .workqueue = nfsiod_workqueue, - .flags = RPC_TASK_ASYNC | flags, + .flags = RPC_TASK_ASYNC | RPC_TASK_CRED_NOREF | flags, .priority = priority, }; /* Set up the initial task struct. */ |