Re: [PATCH -next] fs: pipe -- Take into account requested @len in iter_file_splice_write

From: Cyrill Gorcunov
Date: Tue Jun 03 2014 - 06:19:37 EST


On Sat, May 31, 2014 at 12:33:32AM +0400, Cyrill Gorcunov wrote:
> Currently iter_file_splice_write pushes into the output IOVs as much
> as it can, so that if one previously pushed into pipe 8K of data and
> then try to fetch 4K -- he get the complete 8K instead.
>
> Lest count how many bytes were requested by a caller and
> stop looping once request is complete.
>
> Signed-off-by: Cyrill Gorcunov <gorcunov@xxxxxxxxxx>

Ping?
--
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/