mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 03:10:12 +00:00
qla2xxx: Add fix in driver unload for pending activity.
Signed-off-by: Sawan Chandak <sawan.chandak@qlogic.com> Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
parent
d2749ffadb
commit
9d35894d33
1 changed files with 4 additions and 2 deletions
|
@ -860,8 +860,10 @@ qla2x00_wait_for_hba_ready(scsi_qla_host_t *vha)
|
|||
{
|
||||
struct qla_hw_data *ha = vha->hw;
|
||||
|
||||
while ((!(vha->flags.online) || ha->dpc_active ||
|
||||
ha->flags.mbox_busy))
|
||||
while (((qla2x00_reset_active(vha)) || ha->dpc_active ||
|
||||
ha->flags.mbox_busy) ||
|
||||
test_bit(FX00_RESET_RECOVERY, &vha->dpc_flags) ||
|
||||
test_bit(FX00_TARGET_SCAN, &vha->dpc_flags))
|
||||
msleep(1000);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue