]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
libata: consider errors not associated with commands for speed down
authorTejun Heo <htejun@gmail.com>
Wed, 31 Oct 2007 01:17:05 +0000 (10:17 +0900)
committerJeff Garzik <jeff@garzik.org>
Sat, 3 Nov 2007 12:47:26 +0000 (08:47 -0400)
commitdfcc173d71b029eb2b10cf99bb5b4e8749e09799
treef8b62dc076a082560ffcf94f6f330150766c7ee7
parent08cf69d005acda706bc014c61301993758ce9c5f
libata: consider errors not associated with commands for speed down

libata EH used to ignore errors not associated with commands when
determining whether speed down is necessary or not.  This leads to the
following problems.

* Errors not associated with commands can occur indefinitely without
  libata EH taking corrective actions.

* Upstream link errors don't trigger speed down when PMP is attached
  to it and commands issued to downstream device trigger errors on the
  upstream link.

This patch makes ata_eh_link_autopsy() consider errors not associated
with command for speed down.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/ata/libata-eh.c