Skip to content

Commit

Permalink
qla2xxx: Add fix in driver unload for pending activity.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sawan Chandak authored and Christoph Hellwig committed Sep 25, 2014
1 parent d2749ff commit 9d35894
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions drivers/scsi/qla2xxx/qla_os.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 9d35894

Please sign in to comment.