mirror of
https://github.com/SCST-project/scst.git
synced 2026-09-25 09:24:25 +00:00
Fixed a performance regression caused by r2109.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2248 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
+10
-14
@@ -1970,21 +1970,17 @@ static void srpt_process_completion(struct ib_cq *cq,
|
|||||||
|
|
||||||
EXTRACHECKS_WARN_ON(cq != ch->cq);
|
EXTRACHECKS_WARN_ON(cq != ch->cq);
|
||||||
|
|
||||||
do {
|
ib_req_notify_cq(cq, IB_CQ_NEXT_COMP);
|
||||||
while ((n = ib_poll_cq(cq, ARRAY_SIZE(wc), wc)) > 0) {
|
while ((n = ib_poll_cq(cq, ARRAY_SIZE(wc), wc)) > 0) {
|
||||||
for (i = 0; i < n; i++) {
|
for (i = 0; i < n; i++) {
|
||||||
if (wc[i].wr_id & SRPT_OP_RECV)
|
if (wc[i].wr_id & SRPT_OP_RECV)
|
||||||
srpt_process_rcv_completion(cq, ch,
|
srpt_process_rcv_completion(cq, ch, context,
|
||||||
context,
|
&wc[i]);
|
||||||
&wc[i]);
|
else
|
||||||
else
|
srpt_process_send_completion(cq, ch, context,
|
||||||
srpt_process_send_completion(cq, ch,
|
&wc[i]);
|
||||||
context,
|
|
||||||
&wc[i]);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
} while (ib_req_notify_cq(cq, IB_CQ_NEXT_COMP
|
}
|
||||||
| IB_CQ_REPORT_MISSED_EVENTS) > 0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user