summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2009-04-15 13:10:24 (GMT)
committerJens Axboe <jens.axboe@oracle.com>2009-04-22 06:35:09 (GMT)
commit25636e282fe95508cae96bb27f86407aef935817 (patch)
tree3ab5b1ab589c02756211c8faa098f756488ff0de /scripts
parent23c560a99d78bddf5c251bfa97bce19e4da4b3f3 (diff)
downloadlinux-25636e282fe95508cae96bb27f86407aef935817.tar.xz
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 'scripts')
0 files changed, 0 insertions, 0 deletions