Skip to content

Commit

Permalink
[SCSI] qla4xxx: wait for device_ready before device discovery
Browse files Browse the repository at this point in the history
Signed-off-by: Karen Higgins <karen.higgins@qlogic.com>
Signed-off-by: Vikas Chaudhary <vikas.chaudhary@qlogic.com>
Reviewed-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
  • Loading branch information
Karen Higgins authored and James Bottomley committed Jul 28, 2010
1 parent c2660df commit bb6f7d5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/scsi/qla4xxx/ql4_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -991,6 +991,9 @@ static int qla4xxx_initialize_ddb_list(struct scsi_qla_host *ha)

qla4xxx_flush_AENS(ha);

/* Wait for an AEN */
qla4xxx_devices_ready(ha);

/*
* First perform device discovery for active
* fw ddb indexes and build
Expand All @@ -999,9 +1002,6 @@ static int qla4xxx_initialize_ddb_list(struct scsi_qla_host *ha)
if ((status = qla4xxx_build_ddb_list(ha)) == QLA_ERROR)
return status;

/* Wait for an AEN */
qla4xxx_devices_ready(ha);

/*
* Targets can come online after the inital discovery, so processing
* the aens here will catch them.
Expand Down

0 comments on commit bb6f7d5

Please sign in to comment.