SUNRPC: Make the svc_authenticate tracepoint conditional
authorChuck Lever <chuck.lever@oracle.com>
Sat, 26 Nov 2022 20:55:36 +0000 (15:55 -0500)
committerChuck Lever <cel@kernel.org>
Sat, 10 Dec 2022 16:01:13 +0000 (11:01 -0500)
commitc65d9df0c4a0e150d97aff363cbd0363f21f9466
tree48ecd898497add2ae7d6b648b34620c6df85fdb2
parent9315564747cb6a570e99196b3a4880fb817635fd
SUNRPC: Make the svc_authenticate tracepoint conditional

Clean up: Simplify the tracepoint's only call site.

Also, I noticed that when svc_authenticate() returns SVC_COMPLETE,
it leaves rq_auth_stat set to an error value. That doesn't need to
be recorded in the trace log.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
include/trace/events/sunrpc.h
net/sunrpc/svc.c