summaryrefslogtreecommitdiff
path: root/drivers/scsi
diff options
context:
space:
mode:
authorManish Rangankar <manish.rangankar@cavium.com>2018-01-19 09:52:09 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2018-01-23 04:04:01 +0300
commita1a20ffde280b2cc20eb9c3ea30ff14f8b8ebea2 (patch)
treef077c6ea01dc5a7641b7d9f4c1a89afc1d61531a /drivers/scsi
parent96d5eaa9bb74d299508d811d865c2c41b38b0301 (diff)
downloadlinux-a1a20ffde280b2cc20eb9c3ea30ff14f8b8ebea2.tar.xz
scsi: qedi: Drop cqe response during connection recovery
We get stuck in the loop when firmware sends a cqe response during connection recovery. Signed-off-by: Manish Rangankar <manish.rangankar@cavium.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi')
-rw-r--r--drivers/scsi/qedi/qedi_main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/scsi/qedi/qedi_main.c b/drivers/scsi/qedi/qedi_main.c
index 5ef0b36dd003..58596d17f7d9 100644
--- a/drivers/scsi/qedi/qedi_main.c
+++ b/drivers/scsi/qedi/qedi_main.c
@@ -998,7 +998,9 @@ static bool qedi_process_completions(struct qedi_fastpath *fp)
ret = qedi_queue_cqe(qedi, cqe, fp->sb_id, p);
if (ret)
- continue;
+ QEDI_WARN(&qedi->dbg_ctx,
+ "Dropping CQE 0x%x for cid=0x%x.\n",
+ que->cq_cons_idx, cqe->cqe_common.conn_id);
que->cq_cons_idx++;
if (que->cq_cons_idx == QEDI_CQ_SIZE)