aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2018-12-19 10:59:49 -0500
committerAnna Schumaker <Anna.Schumaker@Netapp.com>2019-01-02 12:05:18 -0500
commitaba11831794356ff58da69de46a125e6335eb9ca (patch)
tree31149d0fb9bc52323bb70c5609c9e3055a1c1b80 /net
parent9bef848f44b4316fbe12e364eea527bd59fa1ed3 (diff)
xprtrdma: Clean up of xprtrdma chunk trace points
The chunk-related trace points capture nearly the same information as the MR-related trace points. Also, rename them so globbing can be used to enable or disable these trace points more easily. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'net')
-rw-r--r--net/sunrpc/xprtrdma/rpc_rdma.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/sunrpc/xprtrdma/rpc_rdma.c b/net/sunrpc/xprtrdma/rpc_rdma.c
index 5a587698c885..54fbd70c661c 100644
--- a/net/sunrpc/xprtrdma/rpc_rdma.c
+++ b/net/sunrpc/xprtrdma/rpc_rdma.c
@@ -365,7 +365,7 @@ rpcrdma_encode_read_list(struct rpcrdma_xprt *r_xprt, struct rpcrdma_req *req,
365 if (encode_read_segment(xdr, mr, pos) < 0) 365 if (encode_read_segment(xdr, mr, pos) < 0)
366 return -EMSGSIZE; 366 return -EMSGSIZE;
367 367
368 trace_xprtrdma_read_chunk(rqst->rq_task, pos, mr, nsegs); 368 trace_xprtrdma_chunk_read(rqst->rq_task, pos, mr, nsegs);
369 r_xprt->rx_stats.read_chunk_count++; 369 r_xprt->rx_stats.read_chunk_count++;
370 nsegs -= mr->mr_nents; 370 nsegs -= mr->mr_nents;
371 } while (nsegs); 371 } while (nsegs);
@@ -422,7 +422,7 @@ rpcrdma_encode_write_list(struct rpcrdma_xprt *r_xprt, struct rpcrdma_req *req,
422 if (encode_rdma_segment(xdr, mr) < 0) 422 if (encode_rdma_segment(xdr, mr) < 0)
423 return -EMSGSIZE; 423 return -EMSGSIZE;
424 424
425 trace_xprtrdma_write_chunk(rqst->rq_task, mr, nsegs); 425 trace_xprtrdma_chunk_write(rqst->rq_task, mr, nsegs);
426 r_xprt->rx_stats.write_chunk_count++; 426 r_xprt->rx_stats.write_chunk_count++;
427 r_xprt->rx_stats.total_rdma_request += mr->mr_length; 427 r_xprt->rx_stats.total_rdma_request += mr->mr_length;
428 nchunks++; 428 nchunks++;
@@ -479,7 +479,7 @@ rpcrdma_encode_reply_chunk(struct rpcrdma_xprt *r_xprt, struct rpcrdma_req *req,
479 if (encode_rdma_segment(xdr, mr) < 0) 479 if (encode_rdma_segment(xdr, mr) < 0)
480 return -EMSGSIZE; 480 return -EMSGSIZE;
481 481
482 trace_xprtrdma_reply_chunk(rqst->rq_task, mr, nsegs); 482 trace_xprtrdma_chunk_reply(rqst->rq_task, mr, nsegs);
483 r_xprt->rx_stats.reply_chunk_count++; 483 r_xprt->rx_stats.reply_chunk_count++;
484 r_xprt->rx_stats.total_rdma_request += mr->mr_length; 484 r_xprt->rx_stats.total_rdma_request += mr->mr_length;
485 nchunks++; 485 nchunks++;