]> git.karo-electronics.de Git - linux-beck.git/commit
libata: adjust speed down rules
authorTejun Heo <htejun@gmail.com>
Tue, 27 Nov 2007 10:28:57 +0000 (19:28 +0900)
committerJeff Garzik <jeff@garzik.org>
Wed, 23 Jan 2008 10:24:11 +0000 (05:24 -0500)
commit663f99b86ac7d4c0eed8c239638da0ea8849288b
tree413952549c288d31f5dec168e3a83fa232457093
parent3884f7b0a8382b89d8ca5da23bd98e3e15fc805b
libata: adjust speed down rules

Speed down rules were too conservative.  Adjust them a bit.

* More than 10 timeouts can't happen in 5 minutes as command timeout
  is 30secs.  Lower the limit for rule #1 to 6.

* 10 timeouts is too high for rule #3 too.  Lower it to 6.

* SATAPI can benefit from falling back to PIO too.  Allow SATAPI
  devices to fall back to PIO.

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