ib_srpt: Avoid that relogin triggers a large number of FLUSH ERR messages

Reported-by: Grant Albitz <Grant@schultztechnology.com>


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6498 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2015-09-10 16:31:31 +00:00
parent 68ce2d0ce4
commit ed07ec49a8

View File

@@ -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);
}