Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 97118
b: refs/heads/master
c: 47698e0
h: refs/heads/master
v: v3
  • Loading branch information
Tom Tucker committed May 19, 2008
1 parent 6f236e0 commit a35cd54
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: 8740767376b32a7772607e1b2b07cde0c24120cc
refs/heads/master: 47698e083e40bbd3ef87f5561390ae33abb13cd0
4 changes: 2 additions & 2 deletions trunk/net/sunrpc/xprtrdma/svc_rdma_transport.c
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,6 @@ static void rq_cq_reap(struct svcxprt_rdma *xprt)
ib_req_notify_cq(xprt->sc_rq_cq, IB_CQ_NEXT_COMP);
atomic_inc(&rdma_stat_rq_poll);

spin_lock_bh(&xprt->sc_rq_dto_lock);
while ((ret = ib_poll_cq(xprt->sc_rq_cq, 1, &wc)) > 0) {
ctxt = (struct svc_rdma_op_ctxt *)(unsigned long)wc.wr_id;
ctxt->wc_status = wc.status;
Expand All @@ -303,9 +302,10 @@ static void rq_cq_reap(struct svcxprt_rdma *xprt)
svc_rdma_put_context(ctxt, 1);
continue;
}
spin_lock_bh(&xprt->sc_rq_dto_lock);
list_add_tail(&ctxt->dto_q, &xprt->sc_rq_dto_q);
spin_unlock_bh(&xprt->sc_rq_dto_lock);
}
spin_unlock_bh(&xprt->sc_rq_dto_lock);

if (ctxt)
atomic_inc(&rdma_stat_rq_prod);
Expand Down

0 comments on commit a35cd54

Please sign in to comment.