diff options
author | Tejun Heo <htejun@gmail.com> | 2008-08-30 14:20:01 +0200 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2008-09-29 00:29:06 -0400 |
commit | 11fc33da8d8413d6bfa5143f454dfcb998c27617 (patch) | |
tree | fb43a4954244cbbd84cb560dd1376d35ad90df84 /drivers/ata/sata_uli.c | |
parent | d09addf65cb5b3b19a536aa3329efeedbc6bb56c (diff) |
libata-eh: clear UNIT ATTENTION after reset
Resets make ATAPI devices raise UNIT ATTENTION which fails the next
command. As resets can happen asynchronously for unrelated reasons,
this sometimes disrupts innocent users. For example, reading DVD
fails after the system wakes up from suspend or the other device
sharing the channel went through bus error.
Clearing UA has some problems as it might clear UA which the userland
needs to know about. However, UA after resets can only be about the
reset itself and benefits of clearing it overweights cons. Missing UA
can only delay failure to one of the following commands anyway. For
example, timeout while burning is in progress will trigger reset and
reset the device state and probably corrupt the burning run. Although
the userland application won't get the UA, its pending writes will
fail.
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/ata/sata_uli.c')
0 files changed, 0 insertions, 0 deletions