From: Gwendal Grignou Date: Fri, 7 Aug 2009 23:17:49 +0000 (-0700) Subject: libata: make ata_eh_qc_retry() bump scmd->allowed on bogus failures X-Git-Tag: v3.12-rc7~28^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f13e220161e738c2710b9904dcb3cf8bb0bcce61;p=pandora-kernel.git libata: make ata_eh_qc_retry() bump scmd->allowed on bogus failures libata EH decrements scmd->retries when the command failed for reasons unrelated to the command itself so that, for example, commands aborted due to suspend / resume cycle don't get penalized; however, decrementing scmd->retries isn't enough for ATA passthrough commands. Without this fix, ATA passthrough commands are not resend to the drive, and no error is signalled to the caller because: - allowed retry count is 1 - ata_eh_qc_complete fill the sense data, so result is valid - sense data is filled with untouched ATA registers. Signed-off-by: Gwendal Grignou Signed-off-by: Tejun Heo Cc: stable@vger.kernel.org --- Reading git-diff-tree failed