Signed-off-by: Trond Myklebust <Trond.Myklebust@xxxxxxxxxx> --- net/sunrpc/clnt.c | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c index 5abab09..efd0c7b 100644 --- a/net/sunrpc/clnt.c +++ b/net/sunrpc/clnt.c @@ -27,6 +27,7 @@ #include <linux/types.h> #include <linux/kallsyms.h> #include <linux/mm.h> +#include <linux/net.h> #include <linux/slab.h> #include <linux/smp_lock.h> #include <linux/utsname.h> @@ -988,8 +989,9 @@ call_bind_status(struct rpc_task *task) task->tk_action = call_bind; return; default: - dprintk("RPC: %5u unrecognized rpcbind error (%d)\n", - task->tk_pid, -task->tk_status); + if (net_ratelimit()) + printk("RPC: %5u unrecognized rpcbind error (%d)\n", + task->tk_pid, -task->tk_status); } rpc_exit(task, status); @@ -1044,6 +1046,9 @@ call_connect_status(struct rpc_task *task) task->tk_action = call_timeout; break; default: + if (net_ratelimit()) + printk("RPC: %5u unrecognized connect error (%d)\n", + task->tk_pid, status); rpc_exit(task, -EIO); } } -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html