aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiridhar Malavali <[email protected]>2011-11-18 09:02:12 -0800
committerJames Bottomley <[email protected]>2011-12-12 12:34:17 +0400
commit0cd33fcfb54f2eb053ead3cca35ad9775fc01301 (patch)
tree1b0335eb77e56a2f9ab739372d8b185b39b56f83
parentbe5ea3cfa15ddef0bee9dfbc214c2113119087a2 (diff)
[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 <[email protected]> Signed-off-by: Andrew Vasquez <[email protected]> Signed-off-by: Chad Dupuis <[email protected]> Signed-off-by: James Bottomley <[email protected]>
-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);