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

Commit 74cdbba4 authored by Albert Lee's avatar Albert Lee Committed by Jeff Garzik
Browse files

libata: remove reading alt_status from ata_hsm_qc_complete()



In ata_hsm_qc_complete():
Calling ata_altstatus() after the qc is completed might race with next qc. Remove it.

Signed-off-by: default avatarAlbert Lee <albertcc@tw.ibm.com>
Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
parent 8c781bf7
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -4781,8 +4781,6 @@ static void ata_hsm_qc_complete(struct ata_queued_cmd *qc, int in_wq)
		} else
			ata_qc_complete(qc);
	}

	ata_altstatus(ap); /* flush */
}

/**