Skip to content

Commit

Permalink
svcrdma: Use ib verbs version of dma_unmap
Browse files Browse the repository at this point in the history
Use the ib_verbs version of the dma_unmap service in the
svc_rdma_put_context function. This should support providers
using software rdma.

Signed-off-by: Tom Tucker <tom@opengridcomputing.com>
  • Loading branch information
Tom Tucker committed May 19, 2008
1 parent 356d0a1 commit 97a3df3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions net/sunrpc/xprtrdma/svc_rdma_transport.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,10 @@ void svc_rdma_put_context(struct svc_rdma_op_ctxt *ctxt, int free_pages)
put_page(ctxt->pages[i]);

for (i = 0; i < ctxt->count; i++)
dma_unmap_single(xprt->sc_cm_id->device->dma_device,
ctxt->sge[i].addr,
ctxt->sge[i].length,
ctxt->direction);
ib_dma_unmap_single(xprt->sc_cm_id->device,
ctxt->sge[i].addr,
ctxt->sge[i].length,
ctxt->direction);

spin_lock_bh(&xprt->sc_ctxt_lock);
list_add(&ctxt->free_list, &xprt->sc_ctxt_free);
Expand Down

0 comments on commit 97a3df3

Please sign in to comment.