Commit 542b994b authored by Trond Myklebust's avatar Trond Myklebust
Browse files

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: default avatarTrond Myklebust <trond.myklebust@hammerspace.com>
parent 263fb9c2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -627,7 +627,7 @@ int nfs_initiate_pgio(struct rpc_clnt *clnt, struct nfs_pgio_header *hdr,
		.callback_ops = call_ops,
		.callback_data = hdr,
		.workqueue = nfsiod_workqueue,
		.flags = RPC_TASK_ASYNC | flags,
		.flags = RPC_TASK_ASYNC | RPC_TASK_CRED_NOREF | flags,
	};
	int ret = 0;

+1 −1
Original line number Diff line number Diff line
@@ -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.  */