sunrpc: make visible processing error in bc_svc_process()
authorVasily Averin <vvs@virtuozzo.com>
Mon, 24 Dec 2018 11:46:08 +0000 (14:46 +0300)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 28 Dec 2018 02:01:41 +0000 (21:01 -0500)
Force bc_svc_process() to generate debug message after processing errors

Signed-off-by: Vasily Averin <vvs@virtuozzo.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
net/sunrpc/svc.c

index 1e6701c..e87ddb9 100644 (file)
@@ -1511,9 +1511,9 @@ bc_svc_process(struct svc_serv *serv, struct rpc_rqst *req,
        if (!proc_error) {
                /* Processing error: drop the request */
                xprt_free_bc_request(req);
-               return 0;
+               error = -EINVAL;
+               goto out;
        }
-
        /* Finally, send the reply synchronously */
        memcpy(&req->rq_snd_buf, &rqstp->rq_res, sizeof(req->rq_snd_buf));
        task = rpc_run_bc_task(req);