diff options
Diffstat (limited to 'net/sunrpc/svc.c')
-rw-r--r-- | net/sunrpc/svc.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/net/sunrpc/svc.c b/net/sunrpc/svc.c index dfa4ba69ff45..dbf12ac5ecb7 100644 --- a/net/sunrpc/svc.c +++ b/net/sunrpc/svc.c | |||
@@ -20,7 +20,6 @@ | |||
20 | #include <linux/module.h> | 20 | #include <linux/module.h> |
21 | #include <linux/kthread.h> | 21 | #include <linux/kthread.h> |
22 | #include <linux/slab.h> | 22 | #include <linux/slab.h> |
23 | #include <linux/nsproxy.h> | ||
24 | 23 | ||
25 | #include <linux/sunrpc/types.h> | 24 | #include <linux/sunrpc/types.h> |
26 | #include <linux/sunrpc/xdr.h> | 25 | #include <linux/sunrpc/xdr.h> |
@@ -1041,7 +1040,7 @@ static void svc_unregister(const struct svc_serv *serv, struct net *net) | |||
1041 | } | 1040 | } |
1042 | 1041 | ||
1043 | /* | 1042 | /* |
1044 | * Printk the given error with the address of the client that caused it. | 1043 | * dprintk the given error with the address of the client that caused it. |
1045 | */ | 1044 | */ |
1046 | static __printf(2, 3) | 1045 | static __printf(2, 3) |
1047 | void svc_printk(struct svc_rqst *rqstp, const char *fmt, ...) | 1046 | void svc_printk(struct svc_rqst *rqstp, const char *fmt, ...) |
@@ -1055,8 +1054,7 @@ void svc_printk(struct svc_rqst *rqstp, const char *fmt, ...) | |||
1055 | vaf.fmt = fmt; | 1054 | vaf.fmt = fmt; |
1056 | vaf.va = &args; | 1055 | vaf.va = &args; |
1057 | 1056 | ||
1058 | net_warn_ratelimited("svc: %s: %pV", | 1057 | dprintk("svc: %s: %pV", svc_print_addr(rqstp, buf, sizeof(buf)), &vaf); |
1059 | svc_print_addr(rqstp, buf, sizeof(buf)), &vaf); | ||
1060 | 1058 | ||
1061 | va_end(args); | 1059 | va_end(args); |
1062 | } | 1060 | } |
@@ -1305,7 +1303,7 @@ svc_process(struct svc_rqst *rqstp) | |||
1305 | * Setup response xdr_buf. | 1303 | * Setup response xdr_buf. |
1306 | * Initially it has just one page | 1304 | * Initially it has just one page |
1307 | */ | 1305 | */ |
1308 | rqstp->rq_resused = 1; | 1306 | rqstp->rq_next_page = &rqstp->rq_respages[1]; |
1309 | resv->iov_base = page_address(rqstp->rq_respages[0]); | 1307 | resv->iov_base = page_address(rqstp->rq_respages[0]); |
1310 | resv->iov_len = 0; | 1308 | resv->iov_len = 0; |
1311 | rqstp->rq_res.pages = rqstp->rq_respages + 1; | 1309 | rqstp->rq_res.pages = rqstp->rq_respages + 1; |