Re: [PATCH RFC] extent mapped page cache

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Nick Piggin <npiggin@...>
Cc: Peter Zijlstra <a.p.zijlstra@...>, Trond Myklebust <trond.myklebust@...>, Linux Kernel Mailing List <linux-kernel@...>, Linux Memory Management List <linux-mm@...>, <linux-fsdevel@...>
Date: Wednesday, July 25, 2007 - 10:10 pm

On Thu, 26 Jul 2007 03:37:28 +0200
Nick Piggin <npiggin@suse.de> wrote:


Yes, you could use fsblock for the state bits and make a separate API
to map the actual pages.


One thing it gains us is finding the start of the cluster.  Even if
called by kswapd, the state tree allows writepage to find the start of
the cluster and send down a big bio (provided I implement trylock to
avoid various deadlocks).


Well, it isn't coded yet, but I should be able to do it from the FS
specific ops.


I put the placeholder patches on hold because handling a corner case
where userland did O_DIRECT from a mmap'd region of the same file (Linus
pointed it out to me).  Basically my patches had to work in 64k chunks
to avoid a deadlock in get_user_pages.  With the state tree, I can
allow the page to be faulted in but still properly deal with it.


;) The O_DIRECT benefit is a fringe thing.  I've long wanted to help
clean up that code, but the real point of the patch is to make general
usage faster and less complex.  If I can't get there, the O_DIRECT
stuff doesn't matter.

I'm sure we can find some river in Cambridge, winner gets to throw
Axboe in.

-chris
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH RFC] extent mapped page cache, Chris Mason, (Tue Jul 10, 5:03 pm)
[PATCH RFC] extent mapped page cache, Chris Mason, (Tue Jul 24, 4:00 pm)
Re: [PATCH RFC] extent mapped page cache, Trond Myklebust, (Tue Jul 24, 4:13 pm)
Re: [PATCH RFC] extent mapped page cache, Peter Zijlstra, (Tue Jul 24, 5:25 pm)
Re: [PATCH RFC] extent mapped page cache, Chris Mason, (Tue Jul 24, 7:25 pm)
Re: [PATCH RFC] extent mapped page cache, Nick Piggin, (Tue Jul 24, 10:32 pm)
Re: [PATCH RFC] extent mapped page cache, Chris Mason, (Wed Jul 25, 8:18 am)
Re: [PATCH RFC] extent mapped page cache, Nick Piggin, (Wed Jul 25, 9:37 pm)
Re: [PATCH RFC] extent mapped page cache, Chris Mason, (Wed Jul 25, 10:10 pm)
Re: [PATCH RFC] extent mapped page cache, Nick Piggin, (Wed Jul 25, 10:36 pm)
Re: [PATCH RFC] extent mapped page cache, Chris Mason, (Thu Jul 26, 9:05 am)
Re: [PATCH RFC] extent mapped page cache, Nick Piggin, (Thu Jul 26, 9:15 pm)
Re: [PATCH RFC] extent mapped page cache, Anton Altaparmakov, (Thu Jul 26, 3:53 am)
[PATCH RFC] extent mapped page cache main code, Chris Mason, (Tue Jul 24, 4:03 pm)
[PATCH RFC] ext2 extentmap support, Chris Mason, (Tue Jul 24, 4:04 pm)
Re: [PATCH RFC] extent mapped page cache, Daniel Phillips, (Thu Jul 12, 3:00 am)
Re: [PATCH RFC] extent mapped page cache, Chris Mason, (Wed Jul 18, 10:18 am)