Skip to content
Commit 4dc738ed authored by Tejun Heo's avatar Tejun Heo Committed by Jeff Garzik
Browse files

libata: fix spurious WARN_ON_ONCE() on port freeze

Commit 54c38444

 makes libata abort qcs
after the port is frozen.  This is necessary to guarantee that TF
registers are accessed after the DMA engine is shutdown after an
error.  However, this triggers WARN_ON_ONCE() check in
ata_qc_complete() spuriously.  Move WARN_ON_ONCE() downwards such that
failing commands while frozen doesn't trigger it.

Signed-off-by: default avatarTejun Heo <tj@kernel.org>
Cc: stable <stable@kernel.org>
Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
parent 31b239ad
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment