Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 115421
b: refs/heads/master
c: b3cd8d4
h: refs/heads/master
i:
  115419: 04a2360
v: v3
  • Loading branch information
Tom Talpey authored and Trond Myklebust committed Oct 10, 2008
1 parent d538d79 commit 3d14581
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5f37d561e0f0cd98017c389cbc22080290f11c3c
refs/heads/master: b3cd8d45a764e6edb06e7bd386faf99a879569b8
2 changes: 1 addition & 1 deletion trunk/net/sunrpc/xprtrdma/transport.c
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,7 @@ static void __exit xprt_rdma_cleanup(void)
{
int rc;

dprintk("RPCRDMA Module Removed, deregister RPC RDMA transport\n");
dprintk(KERN_INFO "RPCRDMA Module Removed, deregister RPC RDMA transport\n");
#ifdef RPC_DEBUG
if (sunrpc_table_header) {
unregister_sysctl_table(sunrpc_table_header);
Expand Down
21 changes: 21 additions & 0 deletions trunk/net/sunrpc/xprtrdma/verbs.c
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,27 @@ rpcrdma_conn_upcall(struct rdma_cm_id *id, struct rdma_cm_event *event)
break;
}

#ifdef RPC_DEBUG
if (connstate == 1) {
int ird = attr.max_dest_rd_atomic;
int tird = ep->rep_remote_cma.responder_resources;
printk(KERN_INFO "rpcrdma: connection to %u.%u.%u.%u:%u "
"on %s, memreg %d slots %d ird %d%s\n",
NIPQUAD(addr->sin_addr.s_addr),
ntohs(addr->sin_port),
ia->ri_id->device->name,
ia->ri_memreg_strategy,
xprt->rx_buf.rb_max_requests,
ird, ird < 4 && ird < tird / 2 ? " (low!)" : "");
} else if (connstate < 0) {
printk(KERN_INFO "rpcrdma: connection to %u.%u.%u.%u:%u "
"closed (%d)\n",
NIPQUAD(addr->sin_addr.s_addr),
ntohs(addr->sin_port),
connstate);
}
#endif

return 0;
}

Expand Down

0 comments on commit 3d14581

Please sign in to comment.