diff options
author | Joe Carnuccio <joe.carnuccio@qlogic.com> | 2011-03-30 14:46:27 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2011-05-01 11:10:47 -0400 |
commit | 03bcfb57c098016e318e2672028f93ec072a2333 (patch) | |
tree | c309dfe3c954d7ef50a02b27a9c8edf61b720801 /drivers/scsi/qla2xxx/qla_init.c | |
parent | 8f7daead3c7861f9d0caa55269773136ab443b41 (diff) |
[SCSI] qla2xxx: Add test for valid loop id to qla2x00_relogin().
If fabric device has invalid loop id (FC_NO_LOOP_ID) then call
qla2x00_find_new_loop_id() to attempt to obtain valid loop id.
Signed-off-by: Joe Carnuccio <joe.carnuccio@qlogic.com>
Signed-off-by: Madhuranath Iyengar <Madhu.Iyengar@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_init.c')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_init.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c index 2c9f47aef229..234c1c28bf44 100644 --- a/drivers/scsi/qla2xxx/qla_init.c +++ b/drivers/scsi/qla2xxx/qla_init.c | |||
@@ -35,8 +35,6 @@ static int qla2x00_fabric_dev_login(scsi_qla_host_t *, fc_port_t *, | |||
35 | 35 | ||
36 | static int qla2x00_restart_isp(scsi_qla_host_t *); | 36 | static int qla2x00_restart_isp(scsi_qla_host_t *); |
37 | 37 | ||
38 | static int qla2x00_find_new_loop_id(scsi_qla_host_t *, fc_port_t *); | ||
39 | |||
40 | static struct qla_chip_state_84xx *qla84xx_get_chip(struct scsi_qla_host *); | 38 | static struct qla_chip_state_84xx *qla84xx_get_chip(struct scsi_qla_host *); |
41 | static int qla84xx_init_chip(scsi_qla_host_t *); | 39 | static int qla84xx_init_chip(scsi_qla_host_t *); |
42 | static int qla25xx_init_queues(struct qla_hw_data *); | 40 | static int qla25xx_init_queues(struct qla_hw_data *); |
@@ -3390,7 +3388,7 @@ qla2x00_find_all_fabric_devs(scsi_qla_host_t *vha, | |||
3390 | * Context: | 3388 | * Context: |
3391 | * Kernel context. | 3389 | * Kernel context. |
3392 | */ | 3390 | */ |
3393 | static int | 3391 | int |
3394 | qla2x00_find_new_loop_id(scsi_qla_host_t *vha, fc_port_t *dev) | 3392 | qla2x00_find_new_loop_id(scsi_qla_host_t *vha, fc_port_t *dev) |
3395 | { | 3393 | { |
3396 | int rval; | 3394 | int rval; |