Re: sendfile from 9p fs into af_alg

2016-11-23 Thread Alexei Starovoitov
On Wed, Nov 23, 2016 at 03:53:01PM +, Al Viro wrote: > On Wed, Nov 23, 2016 at 12:58:11AM -0800, Alexei Starovoitov wrote: > > > if I read it correctly 9p actually responded with 8192 bytes of requests... > > whereas the file size was 9624. > > For large file sizes (in megabytes) the differenc

Re: sendfile from 9p fs into af_alg

2016-11-23 Thread Al Viro
On Wed, Nov 23, 2016 at 12:58:11AM -0800, Alexei Starovoitov wrote: > if I read it correctly 9p actually responded with 8192 bytes of requests... > whereas the file size was 9624. > For large file sizes (in megabytes) the difference between what > sendfile is reporting and actual file size can be

Re: sendfile from 9p fs into af_alg

2016-11-23 Thread Alexei Starovoitov
gt; Hi Al, > > > > > > > > it seems the following commit 523ac9afc73a ("switch > > > > default_file_splice_read() to use of pipe-backed iov_iter") > > > > breaks sendfile from 9p fs into af_alg socket. > > > > sendfile into af_alg

Re: sendfile from 9p fs into af_alg

2016-11-22 Thread Al Viro
llowing commit 523ac9afc73a ("switch > > > default_file_splice_read() to use of pipe-backed iov_iter") > > > breaks sendfile from 9p fs into af_alg socket. > > > sendfile into af_alg is used by iproute2/tc. > > > I'm not sure whether it's 9p or crypto or vfs

Re: sendfile from 9p fs into af_alg

2016-11-22 Thread Alexei Starovoitov
On Wed, Nov 23, 2016 at 04:46:26AM +, Al Viro wrote: > On Tue, Nov 22, 2016 at 07:58:29PM -0800, Alexei Starovoitov wrote: > > Hi Al, > > > > it seems the following commit 523ac9afc73a ("switch > > default_file_splice_read() to use of pipe-backed iov_iter&

Re: sendfile from 9p fs into af_alg

2016-11-22 Thread Al Viro
On Tue, Nov 22, 2016 at 07:58:29PM -0800, Alexei Starovoitov wrote: > Hi Al, > > it seems the following commit 523ac9afc73a ("switch > default_file_splice_read() to use of pipe-backed iov_iter") > breaks sendfile from 9p fs into af_alg socket. > sendfile into af_alg i

sendfile from 9p fs into af_alg

2016-11-22 Thread Alexei Starovoitov
Hi Al, it seems the following commit 523ac9afc73a ("switch default_file_splice_read() to use of pipe-backed iov_iter") breaks sendfile from 9p fs into af_alg socket. sendfile into af_alg is used by iproute2/tc. I'm not sure whether it's 9p or crypto or vfs problem, but happy