sunrpc: Move trace_svc_xprt_dequeue()
authorChuck Lever <chuck.lever@oracle.com>
Tue, 27 Mar 2018 14:50:07 +0000 (10:50 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Tue, 3 Apr 2018 19:08:10 +0000 (15:08 -0400)
commitcaa3e106dc623eb41542e6221abecf9956e8a0e6
tree7d0c614596ed0965789297e371522185b9b83b73
parent03edb90f57a5f7edaa13db3174e269331ef9a527
sunrpc: Move trace_svc_xprt_dequeue()

Reduce the amount of noise generated by trace_svc_xprt_dequeue by
moving it to the end of svc_get_next_xprt. This generates exactly
one trace event when a ready xprt is found, rather than spurious
events when there is no work to do. The empty events contain no
information that can't be obtained simply by tracing function calls
to svc_xprt_dequeue.

A small additional benefit is simplification of the svc_xprt_event
trace class, which no longer has to handle the case when the @xprt
parameter is NULL.

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