[PATCHSET block#for-2.6.31] block: fix fallouts from recent cleanups, take#2

Tejun Heo
2009-05-19T09:35:48Z

Hello,

This is the second take of fix-fallouts patchset. The first one[L]
was posted without header message. Changes from the last take are

* ub change updated per Pete Zitcev's comment

* resid_len init bug spotted by Boaz Harrosh fixed

This patchset contains the following three patches.

0001-ub-use-__blk_end_request_all.patch
0002-block-set-rq-resid_len-to-blk_rq_bytes-on-issue.patch
0003-bio-always-copy-back-data-for-copied-kernel-request.patch

0001 updates ub to use __blk_end_request_all() and 0002 restores the
original residue count behavior. 0003 makes sure kernel pc buffer is
bounced back even on request failure as user pc ones do. This
inconsistency was discovered during discussion over residue count
semantics.

This patchset contains the following changes.

block/blk-core.c | 5 +++--
drivers/block/ub.c | 30 +++++++++++-------------------
drivers/ide/ide-cd.c | 4 ++--
drivers/ide/ide-tape.c | 2 +-
drivers/message/fusion/mptsas.c | 3 ++-
drivers/scsi/libsas/sas_expander.c | 4 ++++
drivers/scsi/libsas/sas_host_smp.c | 3 ---
drivers/scsi/mpt2sas/mpt2sas_transport.c | 4 ++--
fs/bio.c | 2 +-
9 files changed, 26 insertions(+), 31 deletions(-)

Thanks.

--
tejun

[L] http://thread.gmane.org/gmane.linux.ide/40728