diff options
author | Giridhar Malavali <giridhar.malavali@qlogic.com> | 2010-07-23 06:28:35 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-07-28 10:06:15 -0400 |
commit | 4d78c973ef2d21e90ff55f97489d663a0959a93f (patch) | |
tree | 5d82916649e2578d1baad596a7d20bf951a5ed6f /drivers/scsi/qla2xxx/qla_init.c | |
parent | 3711333dfbeec1905c2d3521d1ed2ddcdbdbac04 (diff) |
[SCSI] qla2xxx: Rearranged and cleaned up the code for processing the pending commands.
Signed-off-by: Giridhar Malavali <giridhar.malavali@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 | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c index f6b1052a3834..9b58a79c4ae5 100644 --- a/drivers/scsi/qla2xxx/qla_init.c +++ b/drivers/scsi/qla2xxx/qla_init.c | |||
@@ -3833,8 +3833,13 @@ qla2x00_abort_isp_cleanup(scsi_qla_host_t *vha) | |||
3833 | } | 3833 | } |
3834 | 3834 | ||
3835 | /* Make sure for ISP 82XX IO DMA is complete */ | 3835 | /* Make sure for ISP 82XX IO DMA is complete */ |
3836 | if (IS_QLA82XX(ha)) | 3836 | if (IS_QLA82XX(ha)) { |
3837 | qla82xx_wait_for_pending_commands(vha); | 3837 | if (qla2x00_eh_wait_for_pending_commands(vha, 0, 0, |
3838 | WAIT_HOST) == QLA_SUCCESS) { | ||
3839 | DEBUG2(qla_printk(KERN_INFO, ha, | ||
3840 | "Done wait for pending commands\n")); | ||
3841 | } | ||
3842 | } | ||
3838 | 3843 | ||
3839 | /* Requeue all commands in outstanding command list. */ | 3844 | /* Requeue all commands in outstanding command list. */ |
3840 | qla2x00_abort_all_cmds(vha, DID_RESET << 16); | 3845 | qla2x00_abort_all_cmds(vha, DID_RESET << 16); |