|
@@ -324,6 +324,8 @@ struct rpc_clnt *rpc_create(struct rpc_create_args *args)
|
|
clnt->cl_autobind = 1;
|
|
clnt->cl_autobind = 1;
|
|
if (args->flags & RPC_CLNT_CREATE_DISCRTRY)
|
|
if (args->flags & RPC_CLNT_CREATE_DISCRTRY)
|
|
clnt->cl_discrtry = 1;
|
|
clnt->cl_discrtry = 1;
|
|
|
|
+ if (!(args->flags & RPC_CLNT_CREATE_QUIET))
|
|
|
|
+ clnt->cl_chatty = 1;
|
|
|
|
|
|
return clnt;
|
|
return clnt;
|
|
}
|
|
}
|
|
@@ -1149,7 +1151,8 @@ call_status(struct rpc_task *task)
|
|
rpc_exit(task, status);
|
|
rpc_exit(task, status);
|
|
break;
|
|
break;
|
|
default:
|
|
default:
|
|
- printk("%s: RPC call returned error %d\n",
|
|
|
|
|
|
+ if (clnt->cl_chatty)
|
|
|
|
+ printk("%s: RPC call returned error %d\n",
|
|
clnt->cl_protname, -status);
|
|
clnt->cl_protname, -status);
|
|
rpc_exit(task, status);
|
|
rpc_exit(task, status);
|
|
}
|
|
}
|
|
@@ -1174,7 +1177,8 @@ call_timeout(struct rpc_task *task)
|
|
task->tk_timeouts++;
|
|
task->tk_timeouts++;
|
|
|
|
|
|
if (RPC_IS_SOFT(task)) {
|
|
if (RPC_IS_SOFT(task)) {
|
|
- printk(KERN_NOTICE "%s: server %s not responding, timed out\n",
|
|
|
|
|
|
+ if (clnt->cl_chatty)
|
|
|
|
+ printk(KERN_NOTICE "%s: server %s not responding, timed out\n",
|
|
clnt->cl_protname, clnt->cl_server);
|
|
clnt->cl_protname, clnt->cl_server);
|
|
rpc_exit(task, -EIO);
|
|
rpc_exit(task, -EIO);
|
|
return;
|
|
return;
|
|
@@ -1182,7 +1186,8 @@ call_timeout(struct rpc_task *task)
|
|
|
|
|
|
if (!(task->tk_flags & RPC_CALL_MAJORSEEN)) {
|
|
if (!(task->tk_flags & RPC_CALL_MAJORSEEN)) {
|
|
task->tk_flags |= RPC_CALL_MAJORSEEN;
|
|
task->tk_flags |= RPC_CALL_MAJORSEEN;
|
|
- printk(KERN_NOTICE "%s: server %s not responding, still trying\n",
|
|
|
|
|
|
+ if (clnt->cl_chatty)
|
|
|
|
+ printk(KERN_NOTICE "%s: server %s not responding, still trying\n",
|
|
clnt->cl_protname, clnt->cl_server);
|
|
clnt->cl_protname, clnt->cl_server);
|
|
}
|
|
}
|
|
rpc_force_rebind(clnt);
|
|
rpc_force_rebind(clnt);
|
|
@@ -1213,8 +1218,9 @@ call_decode(struct rpc_task *task)
|
|
task->tk_pid, task->tk_status);
|
|
task->tk_pid, task->tk_status);
|
|
|
|
|
|
if (task->tk_flags & RPC_CALL_MAJORSEEN) {
|
|
if (task->tk_flags & RPC_CALL_MAJORSEEN) {
|
|
- printk(KERN_NOTICE "%s: server %s OK\n",
|
|
|
|
- clnt->cl_protname, clnt->cl_server);
|
|
|
|
|
|
+ if (clnt->cl_chatty)
|
|
|
|
+ printk(KERN_NOTICE "%s: server %s OK\n",
|
|
|
|
+ clnt->cl_protname, clnt->cl_server);
|
|
task->tk_flags &= ~RPC_CALL_MAJORSEEN;
|
|
task->tk_flags &= ~RPC_CALL_MAJORSEEN;
|
|
}
|
|
}
|
|
|
|
|