Re: [FSAIO][PATCH 7/8] Filesystem AIO read

2007-01-02 Thread Christoph Hellwig
On Thu, Dec 28, 2006 at 08:48:30PM +0530, Suparna Bhattacharya wrote: > Yes, we can do that -- how about aio_restarted() as an alternate name ? Sounds fine to me. > > Pluse possible naming updates discussed in the last mail. Also do we > > really need to pass current->io_wait here? Isn't the wa

Re: [FSAIO][PATCH 7/8] Filesystem AIO read

2006-12-28 Thread Randy Dunlap
On Thu, 28 Dec 2006 17:22:07 +0100 (MET) Jan Engelhardt wrote: > > On Dec 28 2006 11:57, Christoph Hellwig wrote: > > > >> + > >> + if ((error = __lock_page(page, current->io_wait))) { > >> + goto readpage_error; > >> + } > > > >This should be > > > >

Re: [FSAIO][PATCH 7/8] Filesystem AIO read

2006-12-28 Thread Jan Engelhardt
On Dec 28 2006 11:57, Christoph Hellwig wrote: > >> + >> +if ((error = __lock_page(page, current->io_wait))) { >> +goto readpage_error; >> +} > >This should be > > error = __lock_page(page, current->io_wait); > if (error) >

Re: [FSAIO][PATCH 7/8] Filesystem AIO read

2006-12-28 Thread Suparna Bhattacharya
On Thu, Dec 28, 2006 at 11:57:47AM +, Christoph Hellwig wrote: > > + if (in_aio()) { > > + /* Avoid repeat readahead */ > > + if (kiocbTryRestart(io_wait_to_kiocb(current->io_wait))) > > + next_index = last_index; > > + } > > Every place we use kiocbTr

Re: [FSAIO][PATCH 7/8] Filesystem AIO read

2006-12-28 Thread Christoph Hellwig
> Pluse possible naming updates discussed in the last mail. Also do we > really need to pass current->io_wait here? Isn't the waitqueue in > the kiocb always guaranteed to be the same? Now that all pagecache > I/O goes through the ->aio_read/->aio_write routines I'd prefer to > get rid of the ta

Re: [FSAIO][PATCH 7/8] Filesystem AIO read

2006-12-28 Thread Christoph Hellwig
> + if (in_aio()) { > + /* Avoid repeat readahead */ > + if (kiocbTryRestart(io_wait_to_kiocb(current->io_wait))) > + next_index = last_index; > + } Every place we use kiocbTryRestart in this and the next patch it's in this from, so we should add

[FSAIO][PATCH 7/8] Filesystem AIO read

2006-12-28 Thread Suparna Bhattacharya
Converts the wait for page to become uptodate (lock page) after readahead/readpage (in do_generic_mapping_read) to a retry exit, to make buffered filesystem AIO reads actually synchronous. The patch avoids exclusive wakeups with AIO, a problem originally spotted by Chris Mason, though the reasoni