/* Abort all pending SCSI commands for a port by closing the port. Using a reopen avoiding a conflict with a shutdown overwriting a reopen.  */
static void zfcp_scsi_terminate_rport_io(struct fc_rport *rport)
/* Abort all pending SCSI commands for a port by closing the port. Using a reopen avoiding a conflict with a shutdown overwriting a reopen.  */
static void zfcp_scsi_terminate_rport_io(struct fc_rport *rport)
{
	struct zfcp_port *port;
	struct Scsi_Host *shost = rport_to_shost(rport);
	struct zfcp_adapter *adapter =
		(struct zfcp_adapter *)shost->hostdata[0];
	port = zfcp_get_port_by_wwpn(adapter, rport->port_name);
	if (port) {
		zfcp_erp_port_reopen(port, 0, "sctrpi1", NULL);
		put_device(&port->sysfs_device);
	}
}