ib_srpt: Increased ib_wc array size back from 4 to 16.

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2341 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2010-10-02 16:05:54 +00:00
parent e3fcb70f50
commit c935c8e28d
2 changed files with 3 additions and 2 deletions

View File

@@ -2021,13 +2021,13 @@ static void srpt_process_completion(struct ib_cq *cq,
struct srpt_rdma_ch *ch,
enum scst_exec_context context)
{
struct ib_wc wc[4];
struct ib_wc* const wc = ch->wc;
int i, n;
EXTRACHECKS_WARN_ON(cq != ch->cq);
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(ch->wc), wc)) > 0) {
for (i = 0; i < n; i++) {
if ((wc[i].wr_id & SRPT_OP_RECV)
|| (wc[i].opcode & IB_WC_RECV))

View File

@@ -296,6 +296,7 @@ struct srpt_rdma_ch {
atomic_t req_lim_delta;
atomic_t req_lim_waiter_count;
struct completion req_lim_compl;
struct ib_wc wc[16];
atomic_t state;
struct list_head list;
struct list_head cmd_wait_list;