From b85002b2636f4264d283f813f885fbbd3ee80edc Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Mon, 11 Jan 2010 19:00:03 +0000 Subject: [PATCH] Made sure that if a work completion reports an error status that completion queue processing is not aborted but that the remaining completion queue entries are processed. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1446 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- srpt/src/ib_srpt.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/srpt/src/ib_srpt.c b/srpt/src/ib_srpt.c index ad0b978b5..b044e8fa2 100644 --- a/srpt/src/ib_srpt.c +++ b/srpt/src/ib_srpt.c @@ -1730,15 +1730,15 @@ static void srpt_completion(struct ib_cq *cq, void *ctx) ib_req_notify_cq(ch->cq, IB_CQ_NEXT_COMP); while (ib_poll_cq(ch->cq, 1, &wc) > 0) { if (wc.status) { - PRINT_ERROR("failed %s status= %d", - wc.wr_id & SRPT_OP_RECV - ? "receiving" - : wc.wr_id & SRPT_OP_TXR - ? "sending request" - : "sending response", - wc.status); + PRINT_INFO("%s failed with status %d", + wc.wr_id & SRPT_OP_RECV + ? "receiving" + : wc.wr_id & SRPT_OP_TXR + ? "sending request" + : "sending response", + wc.status); srpt_handle_err_comp(ch, &wc); - break; + continue; } if (wc.wr_id & SRPT_OP_RECV) {