SUNRPC: Set rq_accept_statp inside ->accept methods
authorChuck Lever <chuck.lever@oracle.com>
Sun, 8 Jan 2023 16:31:05 +0000 (11:31 -0500)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 20 Feb 2023 14:20:31 +0000 (09:20 -0500)
commit4bcf0343e8a69eb22f7e83bfa7cfce32a28c9d95
tree1cf874daa0358934fb3b259e8d8cbd0a99f98f56
parentcee4db19452467eef8ab93c6eb6a3a84d11d25d7
SUNRPC: Set rq_accept_statp inside ->accept methods

To navigate around the space that svcauth_gss_accept() reserves
for the RPC payload body length and sequence number fields,
svcauth_gss_release() does a little dance with the reply's
accept_stat, moving the accept_stat value in the response buffer
down by two words.

Instead, let's have the ->accept() methods each set the proper
final location of the accept_stat to avoid having to move
things.

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