|
@@ -4,7 +4,7 @@
|
|
|
*
|
|
|
* Interface to Linux SCSI midlayer.
|
|
|
*
|
|
|
- * Copyright IBM Corp. 2002, 2017
|
|
|
+ * Copyright IBM Corp. 2002, 2018
|
|
|
*/
|
|
|
|
|
|
#define KMSG_COMPONENT "zfcp"
|
|
@@ -618,9 +618,9 @@ static void zfcp_scsi_rport_register(struct zfcp_port *port)
|
|
|
ids.port_id = port->d_id;
|
|
|
ids.roles = FC_RPORT_ROLE_FCP_TARGET;
|
|
|
|
|
|
- zfcp_dbf_rec_trig("scpaddy", port->adapter, port, NULL,
|
|
|
- ZFCP_PSEUDO_ERP_ACTION_RPORT_ADD,
|
|
|
- ZFCP_PSEUDO_ERP_ACTION_RPORT_ADD);
|
|
|
+ zfcp_dbf_rec_trig_lock("scpaddy", port->adapter, port, NULL,
|
|
|
+ ZFCP_PSEUDO_ERP_ACTION_RPORT_ADD,
|
|
|
+ ZFCP_PSEUDO_ERP_ACTION_RPORT_ADD);
|
|
|
rport = fc_remote_port_add(port->adapter->scsi_host, 0, &ids);
|
|
|
if (!rport) {
|
|
|
dev_err(&port->adapter->ccw_device->dev,
|
|
@@ -642,9 +642,9 @@ static void zfcp_scsi_rport_block(struct zfcp_port *port)
|
|
|
struct fc_rport *rport = port->rport;
|
|
|
|
|
|
if (rport) {
|
|
|
- zfcp_dbf_rec_trig("scpdely", port->adapter, port, NULL,
|
|
|
- ZFCP_PSEUDO_ERP_ACTION_RPORT_DEL,
|
|
|
- ZFCP_PSEUDO_ERP_ACTION_RPORT_DEL);
|
|
|
+ zfcp_dbf_rec_trig_lock("scpdely", port->adapter, port, NULL,
|
|
|
+ ZFCP_PSEUDO_ERP_ACTION_RPORT_DEL,
|
|
|
+ ZFCP_PSEUDO_ERP_ACTION_RPORT_DEL);
|
|
|
fc_remote_port_delete(rport);
|
|
|
port->rport = NULL;
|
|
|
}
|