libata: implement ATA_QCFLAG_RETRY
authorTejun Heo <htejun@gmail.com>
Thu, 27 Mar 2008 10:14:24 +0000 (19:14 +0900)
committerJeff Garzik <jgarzik@redhat.com>
Thu, 17 Apr 2008 19:44:20 +0000 (15:44 -0400)
commit03faab7827e4e45823fd27c47b84c133e20a0cd0
tree046b04c7e650f5318beb330d70e855a889750154
parenta5987e0a1b569146ed9cfa0a8c275a21b344fcaa
libata: implement ATA_QCFLAG_RETRY

Currently whether a command should be retried after failure is
determined inside ata_eh_finish().  Add ATA_QCFLAG_RETRY and move the
logic into ata_eh_autopsy().  This makes things clearer and helps
extending retry determination logic.

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