提交 22ddec31 编写于 作者: S Saurav Kashyap 提交者: Martin K. Petersen

scsi: qedf: Don't process ELS completion if event is flushed or cleaned up

Don't process ELS completion if event is flushed or cleaned up.

Link: https://lore.kernel.org/r/20200807110656.19965-7-jhasan@marvell.comSigned-off-by: NSaurav Kashyap <skashyap@marvell.com>
Signed-off-by: NJaved Hasan <jhasan@marvell.com>
Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
上级 1f6d1d4c
......@@ -147,6 +147,15 @@ void qedf_process_els_compl(struct qedf_ctx *qedf, struct fcoe_cqe *cqe,
QEDF_INFO(&(qedf->dbg_ctx), QEDF_LOG_ELS, "Entered with xid = 0x%x"
" cmd_type = %d.\n", els_req->xid, els_req->cmd_type);
if ((els_req->event == QEDF_IOREQ_EV_ELS_FLUSH)
|| (els_req->event == QEDF_IOREQ_EV_CLEANUP_SUCCESS)
|| (els_req->event == QEDF_IOREQ_EV_CLEANUP_FAILED)) {
QEDF_INFO(&qedf->dbg_ctx, QEDF_LOG_IO,
"ELS completion xid=0x%x after flush event=0x%x",
els_req->xid, els_req->event);
return;
}
clear_bit(QEDF_CMD_OUTSTANDING, &els_req->flags);
/* Kill the ELS timer */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册