Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 156302
b: refs/heads/master
c: 379d6bf
h: refs/heads/master
v: v3
  • Loading branch information
Christof Schmitt authored and James Bottomley committed Jul 30, 2009
1 parent 92f7f31 commit fac8d02
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cbf1ed0264da104573458aedc220ebfcd02567f6
refs/heads/master: 379d6bf6573ee6541a38bbe9140c1f0b94e3feae
7 changes: 6 additions & 1 deletion trunk/drivers/s390/scsi/zfcp_scsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -534,6 +534,9 @@ static void zfcp_scsi_rport_register(struct zfcp_port *port)
struct fc_rport_identifiers ids;
struct fc_rport *rport;

if (port->rport)
return;

ids.node_name = port->wwnn;
ids.port_name = port->wwpn;
ids.port_id = port->d_id;
Expand All @@ -557,8 +560,10 @@ static void zfcp_scsi_rport_block(struct zfcp_port *port)
{
struct fc_rport *rport = port->rport;

if (rport)
if (rport) {
fc_remote_port_delete(rport);
port->rport = NULL;
}
}

void zfcp_scsi_schedule_rport_register(struct zfcp_port *port)
Expand Down

0 comments on commit fac8d02

Please sign in to comment.