forked from luck/tmp_suning_uos_patched
SUNRPC: Replace connect dprintk call sites with a tracepoint
This trace event can be used to audit transport connections from the client. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
This commit is contained in:
parent
0ec36cc9cd
commit
db0a86c426
|
@ -983,6 +983,7 @@ DECLARE_EVENT_CLASS(rpc_xprt_lifetime_class,
|
|||
TP_ARGS(xprt))
|
||||
|
||||
DEFINE_RPC_XPRT_LIFETIME_EVENT(create);
|
||||
DEFINE_RPC_XPRT_LIFETIME_EVENT(connect);
|
||||
DEFINE_RPC_XPRT_LIFETIME_EVENT(disconnect_auto);
|
||||
DEFINE_RPC_XPRT_LIFETIME_EVENT(disconnect_done);
|
||||
DEFINE_RPC_XPRT_LIFETIME_EVENT(disconnect_force);
|
||||
|
|
|
@ -2055,10 +2055,6 @@ call_connect(struct rpc_task *task)
|
|||
return;
|
||||
}
|
||||
|
||||
dprintk("RPC: %5u call_connect xprt %p %s connected\n",
|
||||
task->tk_pid, xprt,
|
||||
(xprt_connected(xprt) ? "is" : "is not"));
|
||||
|
||||
task->tk_action = call_connect_status;
|
||||
if (task->tk_status < 0)
|
||||
return;
|
||||
|
|
|
@ -834,8 +834,7 @@ void xprt_connect(struct rpc_task *task)
|
|||
{
|
||||
struct rpc_xprt *xprt = task->tk_rqstp->rq_xprt;
|
||||
|
||||
dprintk("RPC: %5u xprt_connect xprt %p %s connected\n", task->tk_pid,
|
||||
xprt, (xprt_connected(xprt) ? "is" : "is not"));
|
||||
trace_xprt_connect(xprt);
|
||||
|
||||
if (!xprt_bound(xprt)) {
|
||||
task->tk_status = -EAGAIN;
|
||||
|
|
Loading…
Reference in New Issue
Block a user