summaryrefslogtreecommitdiffstats
path: root/drivers/scsi
diff options
context:
space:
mode:
authorGiridhar Malavali <giridhar.malavali@qlogic.com>2011-11-18 09:02:12 -0800
committerJames Bottomley <JBottomley@Parallels.com>2011-12-12 12:34:17 +0400
commit0cd33fcfb54f2eb053ead3cca35ad9775fc01301 (patch)
tree1b0335eb77e56a2f9ab739372d8b185b39b56f83 /drivers/scsi
parentbe5ea3cfa15ddef0bee9dfbc214c2113119087a2 (diff)
downloadblackbird-op-linux-0cd33fcfb54f2eb053ead3cca35ad9775fc01301.tar.gz
blackbird-op-linux-0cd33fcfb54f2eb053ead3cca35ad9775fc01301.zip
[SCSI] qla2xxx: Revert back the request queue mapping to request queue 0.
If there is an error creating multiple response queues then we need to revert the request queue mapping back to request queue 0. Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com> Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com> Signed-off-by: Chad Dupuis <chad.dupuis@qlogic.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi')
-rw-r--r--drivers/scsi/qla2xxx/qla_os.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c
index 93673d3094e8..01c87004b219 100644
--- a/drivers/scsi/qla2xxx/qla_os.c
+++ b/drivers/scsi/qla2xxx/qla_os.c
@@ -423,6 +423,7 @@ fail2:
qla25xx_delete_queues(vha);
destroy_workqueue(ha->wq);
ha->wq = NULL;
+ vha->req = ha->req_q_map[0];
fail:
ha->mqenable = 0;
kfree(ha->req_q_map);
OpenPOWER on IntegriCloud