clnt.c (ff36e78fdb251b9fa65028554689806961e011eb) | clnt.c (7eac52648a4c24ad23a05f62db97867c92a5747b) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * linux/net/sunrpc/clnt.c 4 * 5 * This file contains the high-level RPC interface. 6 * It is modeled as a finite state machine to support both synchronous 7 * and asynchronous requests. 8 * --- 1085 unchanged lines hidden (view full) --- 1094 1095static void 1096rpc_task_set_rpc_message(struct rpc_task *task, const struct rpc_message *msg) 1097{ 1098 if (msg != NULL) { 1099 task->tk_msg.rpc_proc = msg->rpc_proc; 1100 task->tk_msg.rpc_argp = msg->rpc_argp; 1101 task->tk_msg.rpc_resp = msg->rpc_resp; | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * linux/net/sunrpc/clnt.c 4 * 5 * This file contains the high-level RPC interface. 6 * It is modeled as a finite state machine to support both synchronous 7 * and asynchronous requests. 8 * --- 1085 unchanged lines hidden (view full) --- 1094 1095static void 1096rpc_task_set_rpc_message(struct rpc_task *task, const struct rpc_message *msg) 1097{ 1098 if (msg != NULL) { 1099 task->tk_msg.rpc_proc = msg->rpc_proc; 1100 task->tk_msg.rpc_argp = msg->rpc_argp; 1101 task->tk_msg.rpc_resp = msg->rpc_resp; |
1102 if (msg->rpc_cred != NULL) 1103 task->tk_msg.rpc_cred = get_cred(msg->rpc_cred); | 1102 task->tk_msg.rpc_cred = msg->rpc_cred; 1103 if (!(task->tk_flags & RPC_TASK_CRED_NOREF)) 1104 get_cred(task->tk_msg.rpc_cred); |
1104 } 1105} 1106 1107/* 1108 * Default callback for async RPC calls 1109 */ 1110static void 1111rpc_default_callback(struct rpc_task *task, void *data) --- 1982 unchanged lines hidden --- | 1105 } 1106} 1107 1108/* 1109 * Default callback for async RPC calls 1110 */ 1111static void 1112rpc_default_callback(struct rpc_task *task, void *data) --- 1982 unchanged lines hidden --- |