Re: [RFC] splice() and readahead interaction

2007-05-10 Thread Eric Dumazet
Fengguang Wu a écrit : 2007/5/2, Eric Dumazet <[EMAIL PROTECTED] >: Since you work on readahead, could you please find the reason following program triggers a problem in splice() syscall ? Description : I tried to use splice(SPLICE_F_NONBLOCK) in a non

Re: [RFC] splice() and readahead interaction

2007-05-07 Thread Andrew Morton
On Sat, 5 May 2007 05:04:29 -0400 "Fengguang Wu" <[EMAIL PROTECTED]> wrote: > Readahead logic somehow fails to populate the page range with data. > It can be because > 1) the readahead routine is not always called in the following lines of > fs/splice.c: > if (!loff || nr_pages > 1) >

[RFC] splice() and readahead interaction

2007-05-02 Thread Eric Dumazet
Hi Wu Since you work on readahead, could you please find the reason following program triggers a problem in splice() syscall ? Description : I tried to use splice(SPLICE_F_NONBLOCK) in a non blocking environnement, in an attempt to implement cheap AIO, and zero-copy splice() feature. I quicky