From ed07ec49a83f660a1a25f6dadb3a9e86beabd74f Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Thu, 10 Sep 2015 16:31:31 +0000 Subject: [PATCH] ib_srpt: Avoid that relogin triggers a large number of FLUSH ERR messages Reported-by: Grant Albitz git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6498 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- srpt/src/ib_srpt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srpt/src/ib_srpt.c b/srpt/src/ib_srpt.c index c6845c5cf..6929da468 100644 --- a/srpt/src/ib_srpt.c +++ b/srpt/src/ib_srpt.c @@ -1937,7 +1937,7 @@ static void srpt_process_rcv_completion(struct ib_cq *cq, ioctx = ch->ioctx_recv_ring[index]; ioctx->byte_len = wc->byte_len; srpt_handle_new_iu(ch, ioctx, srpt_new_iu_context); - } else { + } else if (ch->state <= CH_LIVE) { pr_info("receiving failed for idx %u with status %d\n", index, wc->status); }