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>
This commit is contained in:
parent
263fb9c21e
commit
542b994bdb
|
@ -627,7 +627,7 @@ int nfs_initiate_pgio(struct rpc_clnt *clnt, struct nfs_pgio_header *hdr,
|
||||||
.callback_ops = call_ops,
|
.callback_ops = call_ops,
|
||||||
.callback_data = hdr,
|
.callback_data = hdr,
|
||||||
.workqueue = nfsiod_workqueue,
|
.workqueue = nfsiod_workqueue,
|
||||||
.flags = RPC_TASK_ASYNC | flags,
|
.flags = RPC_TASK_ASYNC | RPC_TASK_CRED_NOREF | flags,
|
||||||
};
|
};
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
|
||||||
|
|
|
@ -1707,7 +1707,7 @@ int nfs_initiate_commit(struct rpc_clnt *clnt, struct nfs_commit_data *data,
|
||||||
.callback_ops = call_ops,
|
.callback_ops = call_ops,
|
||||||
.callback_data = data,
|
.callback_data = data,
|
||||||
.workqueue = nfsiod_workqueue,
|
.workqueue = nfsiod_workqueue,
|
||||||
.flags = RPC_TASK_ASYNC | flags,
|
.flags = RPC_TASK_ASYNC | RPC_TASK_CRED_NOREF | flags,
|
||||||
.priority = priority,
|
.priority = priority,
|
||||||
};
|
};
|
||||||
/* Set up the initial task struct. */
|
/* Set up the initial task struct. */
|
||||||
|
|
Loading…
Reference in New Issue