]> git.karo-electronics.de Git - linux-beck.git/commit
libata: clean up EH speed down implementation
authorTejun Heo <htejun@gmail.com>
Tue, 27 Nov 2007 10:28:56 +0000 (19:28 +0900)
committerJeff Garzik <jeff@garzik.org>
Wed, 23 Jan 2008 10:24:10 +0000 (05:24 -0500)
commit3884f7b0a8382b89d8ca5da23bd98e3e15fc805b
treea62ec936db81b3018d072cb03a28dc1d4337dd4a
parent6f1d1e3a03fd04a9d9c82fd3cf414020097bb142
libata: clean up EH speed down implementation

Clean up EH speed down implementation.

* is_io boolean variable is replaced eflags.  is_io is ATA_EFLAG_IS_IO.

* Error categories now have names.

* Better comments.

* Reorder 5min and 10min rules in ata_eh_speed_down_verdict()

* Use local variable @link to cache @dev->link in ata_eh_speed_down()

These changes are to improve readability and ease further changes.
This patch doesn't introduce any behavior change.

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