svc: Report xprt dequeue latency
authorChuck Lever <chuck.lever@oracle.com>
Tue, 27 Mar 2018 14:52:27 +0000 (10:52 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Tue, 3 Apr 2018 19:08:13 +0000 (15:08 -0400)
commit55f5088c22cc83dbc64394abfbf76cd1ff5e7cd0
tree229d0f82add5b8107c1a9ebe3890d43507a5dcc2
parentaaba72cd4e793fbf1c04e06dee3d2c3710339678
svc: Report xprt dequeue latency

Record the time between when a rqstp is enqueued on a transport
and when it is dequeued. This includes how long the rqstp waits on
the queue and how long it takes the kernel scheduler to wake a
nfsd thread to service it.

The svc_xprt_dequeue trace point is altered to include the number
of microseconds between xprt_enqueue and xprt_dequeue.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
include/linux/sunrpc/svc.h
include/trace/events/sunrpc.h
net/sunrpc/svc_xprt.c