sunrpc: Simplify trace_svc_recv
authorChuck Lever <chuck.lever@oracle.com>
Tue, 27 Mar 2018 14:50:42 +0000 (10:50 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Tue, 3 Apr 2018 19:08:11 +0000 (15:08 -0400)
commit41f306d0c287e0cc04054135f9f4ceb003ad6795
treee155d146aa48999173d7d094f5906e2051b5b24e
parent7dbb53baed3c3969dea43e3cee261a75adde123c
sunrpc: Simplify trace_svc_recv

There doesn't seem to be a lot of value in calling trace_svc_recv
in the failing case.

1. There are two very common cases: one is the transport is not
ready, and the other is shutdown. Neither is terribly interesting.

2. The trace record for the failing case contains nothing but
the status code.

Therefore the trace point call site in the error exit is removed.
Since the trace point is now recording a length instead of a
status, rename the status field and remove the case that records a
zero XID.

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