diff --git a/drivers/scsi/scsi_transport_fc.c b/drivers/scsi/scsi_transport_fc.c index a152f89..a45c5ed 100644 --- a/drivers/scsi/scsi_transport_fc.c +++ b/drivers/scsi/scsi_transport_fc.c @@ -2564,6 +2564,10 @@ fc_remote_port_add(struct Scsi_Host *shost, int channel, /* ensure any stgt delete functions are done */ fc_flush_work(shost); + /* ensure dev loss or fast io fail are done */ + if (!cancel_delayed_work(&rport->dev_loss_work)) + fc_flush_devloss(shost); + /* * Search the list of "active" rports, for an rport that has been * deleted, but we've held off the real delete while the target