• Tejun Heo's avatar
    libata: clean up EH speed down implementation · 3884f7b0
    Tejun Heo authored
    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: default avatarTejun Heo <htejun@gmail.com>
    Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
    3884f7b0
libata-eh.c 70.9 KB