diff options
author | NeilBrown <neilb@suse.de> | 2023-07-18 08:38:08 +0200 |
---|---|---|
committer | Chuck Lever <chuck.lever@oracle.com> | 2023-08-29 23:45:22 +0200 |
commit | f78116d3bf4fd7a84451e1a2adc35df7a63fbbf4 (patch) | |
tree | aaab44e3538626892b2decbab14013cd41ba098f /fs/nfsd/nfssvc.c | |
parent | nfsd: separate nfsd_last_thread() from nfsd_put() (diff) | |
download | linux-f78116d3bf4fd7a84451e1a2adc35df7a63fbbf4.tar.xz linux-f78116d3bf4fd7a84451e1a2adc35df7a63fbbf4.zip |
SUNRPC: call svc_process() from svc_recv().
All callers of svc_recv() go on to call svc_process() on success.
Simplify callers by having svc_recv() do that for them.
This loses one call to validate_process_creds() in nfsd. That was
debugging code added 14 years ago. I don't think we need to keep it.
Signed-off-by: NeilBrown <neilb@suse.de>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'fs/nfsd/nfssvc.c')
-rw-r--r-- | fs/nfsd/nfssvc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/nfsd/nfssvc.c b/fs/nfsd/nfssvc.c index a0b16e3dd91a..547feb8ad0af 100644 --- a/fs/nfsd/nfssvc.c +++ b/fs/nfsd/nfssvc.c @@ -970,8 +970,7 @@ nfsd(void *vrqstp) ; if (err == -EINTR) break; - validate_process_creds(); - svc_process(rqstp); + validate_process_creds(); } |