mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-28 17:30:18 +00:00
qla2x00t-32gbit: Always check the return value of qla2x00_eh_wait_for_pending_commands()
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8386 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -6597,7 +6597,8 @@ qla2x00_quiesce_io(scsi_qla_host_t *vha)
|
||||
LOOP_DOWN_TIME);
|
||||
}
|
||||
/* Wait for pending cmds to complete */
|
||||
qla2x00_eh_wait_for_pending_commands(vha, 0, 0, WAIT_HOST);
|
||||
WARN_ON_ONCE(qla2x00_eh_wait_for_pending_commands(vha, 0, 0, WAIT_HOST)
|
||||
!= QLA_SUCCESS);
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
@@ -3709,10 +3709,12 @@ qla82xx_chip_reset_cleanup(scsi_qla_host_t *vha)
|
||||
|
||||
/* Wait for pending cmds (physical and virtual) to complete */
|
||||
if (qla2x00_eh_wait_for_pending_commands(vha, 0, 0,
|
||||
WAIT_HOST)) {
|
||||
WAIT_HOST) == QLA_SUCCESS) {
|
||||
ql_dbg(ql_dbg_init, vha, 0x00b3,
|
||||
"Done wait for "
|
||||
"pending commands.\n");
|
||||
} else {
|
||||
WARN_ON_ONCE(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user