]> git.ipfire.org Git - thirdparty/linux.git/commit
SUNRPC: move all of xprt handling into svc_xprt_handle()
authorNeilBrown <neilb@suse.de>
Mon, 11 Sep 2023 14:38:39 +0000 (10:38 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 16 Oct 2023 16:44:02 +0000 (12:44 -0400)
commite3274026e2ec69eec6ab51bc499e14bb548548d0
tree2530473d15d2de130b44dd686acb9265d0cb730f
parente70da17633ee9457cae39e4f5f2fc5efafb7a99b
SUNRPC: move all of xprt handling into svc_xprt_handle()

svc_xprt_handle() does lots of things itself, but leaves some to the
caller - svc_recv().  This isn't elegant.

Move that code out of svc_recv() into svc_xprt_handle()

Move the calls to svc_xprt_release() from svc_send() and svc_drop()
(the two possible final steps in svc_process()) and from svc_recv() (in
the case where svc_process() wasn't called) into svc_xprt_handle().

Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
net/sunrpc/svc_xprt.c