diff options
author | Gwendal Grignou <gwendal@google.com> | 2009-08-07 16:17:49 -0700 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2013-10-07 15:18:25 -0400 |
commit | f13e220161e738c2710b9904dcb3cf8bb0bcce61 (patch) | |
tree | 5bc78b57686a1f700a94bfd5052d466acd37d727 /drivers/ata/libata-pmp.c | |
parent | 0fed4c09dca6820adaee28e55cd4283e74d029cd (diff) | |
download | op-kernel-dev-f13e220161e738c2710b9904dcb3cf8bb0bcce61.zip op-kernel-dev-f13e220161e738c2710b9904dcb3cf8bb0bcce61.tar.gz |
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 <gwendal@google.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: stable@vger.kernel.org
Diffstat (limited to 'drivers/ata/libata-pmp.c')
0 files changed, 0 insertions, 0 deletions