clnt.c (97d1c83c3ff40759f64784210da21ca6225d8422) | clnt.c (120726526e5ee3dfac11bd417e266a7e411f3315) |
---|---|
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 * --- 2819 unchanged lines hidden (view full) --- 2828} 2829EXPORT_SYMBOL_GPL(rpc_call_null); 2830 2831static int rpc_ping(struct rpc_clnt *clnt) 2832{ 2833 struct rpc_task *task; 2834 int status; 2835 | 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 * --- 2819 unchanged lines hidden (view full) --- 2828} 2829EXPORT_SYMBOL_GPL(rpc_call_null); 2830 2831static int rpc_ping(struct rpc_clnt *clnt) 2832{ 2833 struct rpc_task *task; 2834 int status; 2835 |
2836 if (clnt->cl_auth->au_ops->ping) 2837 return clnt->cl_auth->au_ops->ping(clnt); 2838 |
|
2836 task = rpc_call_null_helper(clnt, NULL, NULL, 0, NULL, NULL); 2837 if (IS_ERR(task)) 2838 return PTR_ERR(task); 2839 status = task->tk_status; 2840 rpc_put_task(task); 2841 return status; 2842} 2843 --- 522 unchanged lines hidden --- | 2839 task = rpc_call_null_helper(clnt, NULL, NULL, 0, NULL, NULL); 2840 if (IS_ERR(task)) 2841 return PTR_ERR(task); 2842 status = task->tk_status; 2843 rpc_put_task(task); 2844 return status; 2845} 2846 --- 522 unchanged lines hidden --- |