diff options
| author | Chuck Lever <chuck.lever@oracle.com> | 2018-12-19 10:59:55 -0500 |
|---|---|---|
| committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2019-01-02 12:05:18 -0500 |
| commit | ba217ec64aef91f40c3cbdbfb0ab3a4000782504 (patch) | |
| tree | baee4031874c16b335914dea6b00b3e44893e2d1 /net | |
| parent | aba11831794356ff58da69de46a125e6335eb9ca (diff) | |
xprtrdma: Relocate the xprtrdma_mr_map trace points
The mr_map trace points were capturing information about the previous
use of the MR rather than about the segment that was just mapped.
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/frwr_ops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sunrpc/xprtrdma/frwr_ops.c b/net/sunrpc/xprtrdma/frwr_ops.c index 97f88bbc9047..1f508f4742f9 100644 --- a/net/sunrpc/xprtrdma/frwr_ops.c +++ b/net/sunrpc/xprtrdma/frwr_ops.c | |||
| @@ -438,7 +438,6 @@ struct rpcrdma_mr_seg *frwr_map(struct rpcrdma_xprt *r_xprt, | |||
| 438 | mr->mr_nents = ib_dma_map_sg(ia->ri_device, mr->mr_sg, i, mr->mr_dir); | 438 | mr->mr_nents = ib_dma_map_sg(ia->ri_device, mr->mr_sg, i, mr->mr_dir); |
| 439 | if (!mr->mr_nents) | 439 | if (!mr->mr_nents) |
| 440 | goto out_dmamap_err; | 440 | goto out_dmamap_err; |
| 441 | trace_xprtrdma_mr_map(mr); | ||
| 442 | 441 | ||
| 443 | ibmr = frwr->fr_mr; | 442 | ibmr = frwr->fr_mr; |
| 444 | n = ib_map_mr_sg(ibmr, mr->mr_sg, mr->mr_nents, NULL, PAGE_SIZE); | 443 | n = ib_map_mr_sg(ibmr, mr->mr_sg, mr->mr_nents, NULL, PAGE_SIZE); |
| @@ -460,6 +459,7 @@ struct rpcrdma_mr_seg *frwr_map(struct rpcrdma_xprt *r_xprt, | |||
| 460 | mr->mr_handle = ibmr->rkey; | 459 | mr->mr_handle = ibmr->rkey; |
| 461 | mr->mr_length = ibmr->length; | 460 | mr->mr_length = ibmr->length; |
| 462 | mr->mr_offset = ibmr->iova; | 461 | mr->mr_offset = ibmr->iova; |
| 462 | trace_xprtrdma_mr_map(mr); | ||
| 463 | 463 | ||
| 464 | *out = mr; | 464 | *out = mr; |
| 465 | return seg; | 465 | return seg; |
