Skip to content

Commit 9cc328f

Browse files
Mike Christiejejb
authored andcommitted
[SCSI] ibmvfc, qla2xxx, lpfc: remove scsi_target_unblock calls in terminate callbacks
The fc class now calls scsi_target_unblock after calling the terminate callback, so this patch removes the calls from the drivers. Signed-off-by: Mike Christie <michaelc@cs.wisc.edu> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
1 parent fff9d40 commit 9cc328f

3 files changed

Lines changed: 0 additions & 11 deletions

File tree

‎drivers/scsi/ibmvscsi/ibmvfc.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2031,8 +2031,6 @@ static void ibmvfc_terminate_rport_io(struct fc_rport *rport)
20312031
spin_unlock_irqrestore(shost->host_lock, flags);
20322032
} else
20332033
ibmvfc_issue_fc_host_lip(shost);
2034-
2035-
scsi_target_unblock(&rport->dev);
20362034
LEAVE;
20372035
}
20382036

‎drivers/scsi/lpfc/lpfc_hbadisc.c‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,6 @@ lpfc_terminate_rport_io(struct fc_rport *rport)
8888
&phba->sli.ring[phba->sli.fcp_ring],
8989
ndlp->nlp_sid, 0, LPFC_CTX_TGT);
9090
}
91-
92-
/*
93-
* A device is normally blocked for rediscovery and unblocked when
94-
* devloss timeout happens. In case a vport is removed or driver
95-
* unloaded before devloss timeout happens, we need to unblock here.
96-
*/
97-
scsi_target_unblock(&rport->dev);
98-
return;
9991
}
10092

10193
/*

‎drivers/scsi/qla2xxx/qla_attr.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1006,7 +1006,6 @@ qla2x00_terminate_rport_io(struct fc_rport *rport)
10061006
}
10071007

10081008
qla2x00_abort_fcport_cmds(fcport);
1009-
scsi_target_unblock(&rport->dev);
10101009
}
10111010

10121011
static int

0 commit comments

Comments
 (0)