Re: [PATCH 2/8] block: fix SG_IO vector request data lengthhandling

From: Jens Axboe
Date: Wed Apr 01 2009 - 07:51:18 EST


On Wed, Apr 01 2009, FUJITA Tomonori wrote:
> On Wed, 1 Apr 2009 20:04:38 +0900
> Tejun Heo <tj@xxxxxxxxxx> wrote:
>
> > 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.
>
> Is that description about sg's SG_IO?

The more important question is what sg.c actually does, that's more
important than the documentation.

--
Jens Axboe

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/