Skip to content

Commit 3f9de7f

Browse files
Chad Dupuismartinkpetersen
authored andcommitted
scsi: qedf: Check if link is already up when receiving a link up event from qed
[mkp: typo] Signed-off-by: Chad Dupuis <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent a8f192b commit 3f9de7f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

drivers/scsi/qedf/qedf_main.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -485,6 +485,11 @@ static void qedf_link_update(void *dev, struct qed_link_output *link)
485485
struct qedf_ctx *qedf = (struct qedf_ctx *)dev;
486486

487487
if (link->link_up) {
488+
if (atomic_read(&qedf->link_state) == QEDF_LINK_UP) {
489+
QEDF_INFO((&qedf->dbg_ctx), QEDF_LOG_DISC,
490+
"Ignoring link up event as link is already up.\n");
491+
return;
492+
}
488493
QEDF_ERR(&(qedf->dbg_ctx), "LINK UP (%d GB/s).\n",
489494
link->speed / 1000);
490495

0 commit comments

Comments
 (0)