Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 77083
b: refs/heads/master
c: 3f0ca62
h: refs/heads/master
i:
  77081: 3b191f5
  77079: 8b37214
v: v3
  • Loading branch information
Christof Schmitt authored and James Bottomley committed Jan 12, 2008
1 parent 37039a3 commit e5250f0
Show file tree
Hide file tree
Showing 3 changed files with 9 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: 951f746fece2e24a26853b3872d16e9013b6fe0b
refs/heads/master: 3f0ca62add34010241db682e63bb68ba765bf4a9
2 changes: 1 addition & 1 deletion trunk/drivers/s390/scsi/zfcp_erp.c
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ zfcp_test_link(struct zfcp_port *port)

zfcp_port_get(port);
retval = zfcp_erp_adisc(port);
if (retval != 0) {
if (retval != 0 && retval != -EBUSY) {
zfcp_port_put(port);
ZFCP_LOG_NORMAL("reopen needed for port 0x%016Lx "
"on adapter %s\n ", port->wwpn,
Expand Down
7 changes: 7 additions & 0 deletions trunk/drivers/s390/scsi/zfcp_fsf.c
Original file line number Diff line number Diff line change
Expand Up @@ -1668,6 +1668,12 @@ zfcp_fsf_send_els(struct zfcp_send_els *els)
goto failed_req;
}

if (unlikely(!atomic_test_mask(ZFCP_STATUS_COMMON_UNBLOCKED,
&els->port->status))) {
ret = -EBUSY;
goto port_blocked;
}

sbale = zfcp_qdio_sbale_req(fsf_req, fsf_req->sbal_curr, 0);
if (zfcp_use_one_sbal(els->req, els->req_count,
els->resp, els->resp_count)){
Expand Down Expand Up @@ -1749,6 +1755,7 @@ zfcp_fsf_send_els(struct zfcp_send_els *els)
"0x%06x)\n", zfcp_get_busid_by_adapter(adapter), d_id);
goto out;

port_blocked:
failed_send:
zfcp_fsf_req_free(fsf_req);

Expand Down

0 comments on commit e5250f0

Please sign in to comment.