Skip to content

Commit

Permalink
scsi: qedi: Drop cqe response during connection recovery
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Manish Rangankar authored and Martin K. Petersen committed Jan 23, 2018
1 parent 96d5eaa commit a1a20ff
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/scsi/qedi/qedi_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a1a20ff

Please sign in to comment.