OSDN Git Service

sunrpc: Add static trace point to report result of RPC ping
authorChuck Lever <chuck.lever@oracle.com>
Fri, 16 Mar 2018 14:33:55 +0000 (10:33 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Tue, 10 Apr 2018 20:06:22 +0000 (16:06 -0400)
commita25a4cb3af177a4cf5621ffbf4fa89ae60c6d4d7
tree1973a6bfb6648ea23a59fef1d5ef23e766f4cfda
parent40bf7eb304b5659991ed932c0cd5bee6a7c88f4f
sunrpc: Add static trace point to report result of RPC ping

This information can help track down local misconfiguration issues
as well as network partitions and unresponsive servers.

There are several ways to send a ping, and with transport multi-
plexing, the exact rpc_xprt that is used is sometimes not known by
the upper layer. The rpc_xprt pointer passed to the trace point
call also has to be RCU-safe.

I found a spot inside the client FSM where an rpc_xprt pointer is
always available and safe to use.

Suggested-by: Bill Baker <Bill.Baker@oracle.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
include/trace/events/sunrpc.h
net/sunrpc/clnt.c