SUNRPC: Move trace_svc_xprt_enqueue
authorChuck Lever <chuck.lever@oracle.com>
Wed, 19 Jul 2023 19:24:42 +0000 (15:24 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Tue, 29 Aug 2023 21:45:22 +0000 (17:45 -0400)
commit82e5d82a45741839bd9dcb6636cfcf67747a5af5
tree68352f725e573aad7db4de57fc465abfcc7e6cec
parent78c542f916bccafffef4f3bec9bc60d7cda548f5
SUNRPC: Move trace_svc_xprt_enqueue

The xpt_flags field frequently changes between the time that
svc_xprt_ready() grabs a copy and execution flow arrives at the
tracepoint at the tail of svc_xprt_enqueue(). In fact, there's
usually a sleep/wake-up in there, so those flags are almost
guaranteed to be different.

It would be more useful to record the exact flags that were used to
decide whether the transport is ready, so move the tracepoint.

Moving it means the tracepoint can't pick up the waker's pid. That
can be added to struct svc_rqst if it turns out that is important.

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