Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 108893
b: refs/heads/master
c: 3eddc56
h: refs/heads/master
i:
  108891: d375bca
v: v3
  • Loading branch information
Brian King authored and James Bottomley committed Aug 16, 2008
1 parent d68e313 commit ecb6e56
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 004dd5e88673516a408f0e8e43edbe6a4424be2f
refs/heads/master: 3eddc569770a76f2ca65621cdde3c0a2552b5b0c
7 changes: 4 additions & 3 deletions trunk/drivers/scsi/ibmvscsi/ibmvfc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1059,9 +1059,10 @@ static void ibmvfc_get_starget_port_id(struct scsi_target *starget)
static int ibmvfc_wait_while_resetting(struct ibmvfc_host *vhost)
{
long timeout = wait_event_timeout(vhost->init_wait_q,
(vhost->state == IBMVFC_ACTIVE ||
vhost->state == IBMVFC_HOST_OFFLINE ||
vhost->state == IBMVFC_LINK_DEAD),
((vhost->state == IBMVFC_ACTIVE ||
vhost->state == IBMVFC_HOST_OFFLINE ||
vhost->state == IBMVFC_LINK_DEAD) &&
vhost->action == IBMVFC_HOST_ACTION_NONE),
(init_timeout * HZ));

return timeout ? 0 : -EIO;
Expand Down

0 comments on commit ecb6e56

Please sign in to comment.