libata-eh don't waste time retrying media errors (v3)
authorMark Lord <kernel@teksavvy.com>
Wed, 2 May 2012 19:22:52 +0000 (15:22 -0400)
committerJeff Garzik <jgarzik@redhat.com>
Mon, 7 May 2012 19:40:34 +0000 (15:40 -0400)
commit8d899e70c1b3afff04104eebc09a629ac8dd4b32
tree65091f65021d685a64a7ed846811dbd0f0301668
parentcd006086fa5d91414d8ff9ff2b78fbb593878e3c
libata-eh don't waste time retrying media errors (v3)

ATA and SATA drives have had built-in retries for media errors
for as long as they've been commonplace in computers (early 1990s).

When libata stumbles across a bad sector, it can waste minutes
sitting there doing retry after retry before finally giving up
and letting the higher layers deal with it.

This patch removes retries for media errors only.

Signed-off-by: Mark Lord <mlord@pobox.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/libata-eh.c