aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorGravatar Tejun Heo <tj@kernel.org> 2009-04-15 22:10:24 +0900
committerGravatar Jens Axboe <jens.axboe@oracle.com> 2009-04-22 08:35:09 +0200
commit25636e282fe95508cae96bb27f86407aef935817 (patch)
tree3ab5b1ab589c02756211c8faa098f756488ff0de /drivers
parentscatterlist: make sure sg_miter_next() doesn't return 0 sized mappings (diff)
downloadlinux-25636e282fe9.tar.gz
linux-25636e282fe9.tar.bz2
linux-25636e282fe9.zip
block: fix SG_IO vector request data length handling
Impact: fix SG_IO behavior such that it matches the documentation SG_IO howto says that if ->dxfer_len and sum of iovec disagress, the shorter one wins. However, the current implementation returns -EINVAL for such cases. Trim iovc if it's longer than ->dxfer_len. This patch uses iov_*() helpers which take struct iovec * by casting struct sg_iovec * to it. sg_iovec is always identical to iovec and this will be further cleaned up with later patches. Signed-off-by: Tejun Heo <tj@kernel.org> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions