ib_srpt: Revert r3920 because the performance improvement is minor and with certain initiators it can cause performance to fluctuate

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4083 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2012-01-21 17:47:48 +00:00
parent a8f25c1cc2
commit 6fbdc157d6

View File

@@ -1969,19 +1969,18 @@ static void srpt_process_completion(struct ib_cq *cq,
EXTRACHECKS_WARN_ON(cq != ch->cq);
do {
while ((n = ib_poll_cq(cq, ARRAY_SIZE(ch->wc), wc)) > 0) {
for (i = 0; i < n; i++) {
if (opcode_from_wr_id(wc[i].wr_id) == SRPT_RECV)
srpt_process_rcv_completion(cq, ch,
rcv_context, &wc[i]);
else
srpt_process_send_completion(cq, ch,
send_context, &wc[i]);
}
ib_req_notify_cq(cq, IB_CQ_NEXT_COMP);
while ((n = ib_poll_cq(cq, ARRAY_SIZE(ch->wc), wc)) > 0) {
for (i = 0; i < n; i++) {
if (opcode_from_wr_id(wc[i].wr_id) == SRPT_RECV)
srpt_process_rcv_completion(cq, ch, rcv_context,
&wc[i]);
else
srpt_process_send_completion(cq, ch,
send_context,
&wc[i]);
}
} while (ib_req_notify_cq(cq, IB_CQ_NEXT_COMP |
IB_CQ_REPORT_MISSED_EVENTS) > 0);
}
}
/**