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
On Wed, Nov 23, 2016 at 06:16:28AM +, Al Viro wrote: > On Tue, Nov 22, 2016 at 08:55:59PM -0800, Alexei Starovoitov wrote: > > 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 se

Re: sendfile from 9p fs into af_alg

2016-11-22 Thread Al Viro
On Tue, Nov 22, 2016 at 08:55:59PM -0800, Alexei Starovoitov wrote: > 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_sp

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") > > breaks sendfile from 9p fs into

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 is used by iproute2/tc. > I'm