]> git.baikalelectronics.ru Git - kernel.git/commit
SUNRPC: Add svc_rqst::rq_auth_stat
authorChuck Lever <chuck.lever@oracle.com>
Thu, 15 Jul 2021 19:52:06 +0000 (15:52 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Tue, 10 Aug 2021 18:18:35 +0000 (14:18 -0400)
commitc8d66b78ce9d9dd090db4bb5521f16e784fc895d
treec1360c030f7871fb0da5510fbca927952878cf46
parentf6a73fa30c8a87abcccfa2f2e11f4b3c7e2e7397
SUNRPC: Add svc_rqst::rq_auth_stat

I'd like to take commit 9da7e9e004f4 ("SUNRPC: Clean up generic
dispatcher code") even further by using only private local SVC
dispatchers for all kernel RPC services. This change would enable
the removal of the logic that switches between
svc_generic_dispatch() and a service's private dispatcher, and
simplify the invocation of the service's pc_release method
so that humans can visually verify that it is always invoked
properly.

All that will come later.

First, let's provide a better way to return authentication errors
from SVC dispatcher functions. Instead of overloading the dispatch
method's *statp argument, add a field to struct svc_rqst that can
hold an error value.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
include/linux/sunrpc/svc.h
include/linux/sunrpc/svcauth.h
include/trace/events/sunrpc.h
net/sunrpc/auth_gss/svcauth_gss.c
net/sunrpc/svc.c
net/sunrpc/svcauth.c
net/sunrpc/svcauth_unix.c