diff options
author | Tejun Heo <htejun@gmail.com> | 2008-02-19 11:35:37 +0100 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2008-02-19 11:35:37 +0100 |
commit | 56c819df77f96c3fc0c2a979e12b478403728790 (patch) | |
tree | 104a8538980dbb267a9a26cb4c34eae583cedeb3 /block | |
parent | e164094964e6e20fe7fce418e06a9dce952bb7a4 (diff) | |
download | linux-56c819df77f96c3fc0c2a979e12b478403728790.tar.bz2 |
libata: update ATAPI overflow draining
For misc ATAPI commands which transfer variable length data to the
host, overflow can occur due to application or hardware bug. Such
overflows can be ignored safely as long as overflow data is properly
drained. libata HSM implementation has this implemented in
__atapi_pio_bytes() and recently updated for 2.6.24-rc but it requires
further improvements. Improve drain logic such that...
* Report overflow errors using ehi desc mechanism instead of printing
directly.
* Properly calculate the number of bytes to be drained considering
actual number of consumed bytes for partial draining.
Signed-off-by: Tejun Heo <htejun@gmail.com>
Acked-by: Albert Lee <albertcc@tw.ibm.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions