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

Konstantin Khorenko khorenko at virtuozzo.com
Thu Apr 6 01:54:23 PDT 2017


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 at 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 at virtuozzo.com>
---
 net/sunrpc/xprt.c | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

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 "


More information about the Devel mailing list