[Devel] sunrpc: print connect status value upon retry

Submitted by Stanislav Kinsburskiy on April 5, 2017, 3:52 p.m.

Details

Message ID 20170405155202.600534.90607.stgit@skinsbursky-vz7.qa.sw.ru
State New
Series "sunrpc: print connect status value upon retry"
Headers show

Commit Message

Stanislav Kinsburskiy April 5, 2017, 3:52 p.m.
And current VE name and VE net_ns pointer.

https://jira.sw.ru/browse/PSBM-63769

Signed-off-by: Stanislav Kinsburskiy <skinsbursky@virtuozzo.com>
---
 net/sunrpc/xprt.c |    9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

Patch hide | download patch | download mbox

diff --git a/net/sunrpc/xprt.c b/net/sunrpc/xprt.c
index 1dd1598..c28b3e3 100644
--- a/net/sunrpc/xprt.c
+++ b/net/sunrpc/xprt.c
@@ -778,8 +778,6 @@  static void xprt_connect_status(struct rpc_task *task)
 
 	switch (task->tk_status) {
 	case -ENETUNREACH:
-		dprintk("RPC: ve_name(xprt->xprt_net->owner_ve): %s\n",
-				ve_name(xprt->xprt_net->owner_ve));
 		if (xprt->xprt_net->owner_ve->ve_netns == NULL) {
 			dprintk("RPC: %5u xprt_connect_status: error %d connecting to "
 					"server %s\n", task->tk_pid, -task->tk_status,
@@ -794,7 +792,12 @@  static void xprt_connect_status(struct rpc_task *task)
 	case -EHOSTUNREACH:
 	case -EPIPE:
 	case -EAGAIN:
-		dprintk("RPC: %5u xprt_connect_status: retrying\n", task->tk_pid);
+		dprintk("RPC: ve_name(xprt->xprt_net->owner_ve): %s\n",
+				ve_name(xprt->xprt_net->owner_ve));
+		dprintk("RPC: xprt->xprt_net->owner_ve->ve_netns: %p\n",
+				xprt->xprt_net->owner_ve->ve_netns);
+		dprintk("RPC: %5u xprt_connect_status: retrying (status: %d)\n",
+				task->tk_pid, -task->tk_status);
 		break;
 	case -ETIMEDOUT:
 		dprintk("RPC: %5u xprt_connect_status: connect attempt timed "