Re: [PATCH] splice: fix wrong __splice_from_pipe() usage

Jens Axboe
2007-07-16T06:35:29Z

> Hi,
>
> I've noticed the nfsd read corruption by recent change. And this patch
> fixes the problem for me, is this right fix?
> --
> OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
>
>
> __splice_from_pipe() is updating the sd->pos for the actor, but those
> functions are passing the sd of reader side directory. So, splice
> updates sd->pos twice.
>
> This fixes usage of __splice_from_pipe().

For sendfile() usage, or the nfsd path that uses splice to send?

--
Jens Axboe