Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9d35894d authored by Sawan Chandak's avatar Sawan Chandak Committed by Christoph Hellwig
Browse files

qla2xxx: Add fix in driver unload for pending activity.

parent d2749ffa
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -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);
}