Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 148069
b: refs/heads/master
c: a17c585
h: refs/heads/master
i:
  148067: 9cbfc5f
v: v3
  • Loading branch information
Martin Petermann authored and James Bottomley committed May 23, 2009
1 parent 56573de commit a48de35
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 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: dceab655d9f7d99881c2033c8ff4e1c7b444e104
refs/heads/master: a17c5855643afa7838f542cbd0a1ed9a73968cef
12 changes: 9 additions & 3 deletions trunk/drivers/s390/scsi/zfcp_fsf.c
Original file line number Diff line number Diff line change
Expand Up @@ -1402,7 +1402,7 @@ static void zfcp_fsf_open_port_handler(struct zfcp_fsf_req *req)
struct fsf_plogi *plogi;

if (req->status & ZFCP_STATUS_FSFREQ_ERROR)
return;
goto out;

switch (header->fsf_status) {
case FSF_PORT_ALREADY_OPEN:
Expand Down Expand Up @@ -1464,6 +1464,9 @@ static void zfcp_fsf_open_port_handler(struct zfcp_fsf_req *req)
req->status |= ZFCP_STATUS_FSFREQ_ERROR;
break;
}

out:
zfcp_port_put(port);
}

/**
Expand All @@ -1476,6 +1479,7 @@ int zfcp_fsf_open_port(struct zfcp_erp_action *erp_action)
struct qdio_buffer_element *sbale;
struct zfcp_adapter *adapter = erp_action->adapter;
struct zfcp_fsf_req *req;
struct zfcp_port *port = erp_action->port;
int retval = -EIO;

spin_lock_bh(&adapter->req_q_lock);
Expand All @@ -1496,16 +1500,18 @@ int zfcp_fsf_open_port(struct zfcp_erp_action *erp_action)
sbale[1].flags |= SBAL_FLAGS_LAST_ENTRY;

req->handler = zfcp_fsf_open_port_handler;
req->qtcb->bottom.support.d_id = erp_action->port->d_id;
req->data = erp_action->port;
req->qtcb->bottom.support.d_id = port->d_id;
req->data = port;
req->erp_action = erp_action;
erp_action->fsf_req = req;
zfcp_port_get(port);

zfcp_fsf_start_erp_timer(req);
retval = zfcp_fsf_req_send(req);
if (retval) {
zfcp_fsf_req_free(req);
erp_action->fsf_req = NULL;
zfcp_port_put(port);
}
out:
spin_unlock_bh(&adapter->req_q_lock);
Expand Down

0 comments on commit a48de35

Please sign in to comment.