[Devel,RHEL7,COMMIT] sunrpc: print connect status value upon retry

Submitted by Konstantin Khorenko on April 6, 2017, 8:54 a.m.

Details

Message ID 201704060854.v368sNRD013887@finist_cl7.x64_64.work.ct
State New
Series "sunrpc: print connect status value upon retry"
Headers show

Commit Message

Konstantin Khorenko April 6, 2017, 8:54 a.m.
The commit is pushed to "branch-rh7-3.10.0-514.10.2.vz7.29.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-514.10.2.vz7.29.12
------>
commit 455d5ba9506998f589b9929266c12627c9baf589
Author: Stanislav Kinsburskiy <skinsbursky@virtuozzo.com>
Date:   Thu Apr 6 12:54:23 2017 +0400

    sunrpc: print connect status value upon retry
    
    And current CT name and CT net_ns pointer.
    
    This is a debug patch for
    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 "