]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/scsi/hisi_sas/hisi_sas_main.c
scsi: hisi_sas: stop controller timer for reset
[linux.git] / drivers / scsi / hisi_sas / hisi_sas_main.c
index 24416bb66027c92d2d22878fe9302ab465f3a106..1f27f847b8b4db180bc5ee1aa0ce4602fb5d52a8 100644 (file)
@@ -1130,6 +1130,9 @@ static int hisi_sas_controller_reset(struct hisi_hba *hisi_hba)
        old_state = hisi_hba->hw->get_phys_state(hisi_hba);
 
        scsi_block_requests(shost);
+       if (timer_pending(&hisi_hba->timer))
+               del_timer_sync(&hisi_hba->timer);
+
        set_bit(HISI_SAS_REJECT_CMD_BIT, &hisi_hba->flags);
        rc = hisi_hba->hw->soft_reset(hisi_hba);
        if (rc) {