Re: [PATCH][RFC] fast file mapping for loop

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Chris Mason
Date: Tuesday, January 15, 2008 - 7:04 am

On Tue, 15 Jan 2008 11:07:40 +0100
Jens Axboe <jens.axboe@oracle.com> wrote:


Thanks!


You can use DIO_CREDITS instead of len >> 9, just like the ext3
O_DIRECT code does.  Your current patch is fine, except it breaks
data=ordered rules.  My plan to work within data=ordered:

1) Inside ext3_map_extent (while the transaction was running), increment
a counter in the ext3 journal for number of pending IOs.  Then end the
transaction handle.

2) Drop this counter inside the IO completion call

3) Change the ext3 commit code to wait for the IO count to be zero.

I'll give it a shot later this week, until then your current patch is
just data=writeback, which is good enough for testing.

-chris
-
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH][RFC] fast file mapping for loop, Jens Axboe, (Wed Jan 9, 1:52 am)
Re: [PATCH][RFC] fast file mapping for loop, Christoph Hellwig, (Wed Jan 9, 2:31 am)
Re: [PATCH][RFC] fast file mapping for loop, Jens Axboe, (Wed Jan 9, 2:43 am)
Re: [PATCH][RFC] fast file mapping for loop, Chris Mason, (Wed Jan 9, 4:00 am)
Re: [PATCH][RFC] fast file mapping for loop, Andi Kleen, (Wed Jan 9, 8:34 am)
Re: [PATCH][RFC] fast file mapping for loop, Alasdair G Kergon, (Wed Jan 9, 4:16 pm)
Re: [PATCH][RFC] fast file mapping for loop, Nick Piggin, (Wed Jan 9, 6:42 pm)
Re: [PATCH][RFC] fast file mapping for loop, Jens Axboe, (Thu Jan 10, 1:31 am)
Re: [PATCH][RFC] fast file mapping for loop, Jens Axboe, (Thu Jan 10, 1:34 am)
Re: [PATCH][RFC] fast file mapping for loop, Christoph Hellwig, (Thu Jan 10, 1:37 am)
Re: [PATCH][RFC] fast file mapping for loop, Jens Axboe, (Thu Jan 10, 1:42 am)
Re: [PATCH][RFC] fast file mapping for loop, Jens Axboe, (Thu Jan 10, 1:43 am)
Re: [PATCH][RFC] fast file mapping for loop, Jens Axboe, (Thu Jan 10, 1:44 am)
Re: [PATCH][RFC] fast file mapping for loop, Christoph Hellwig, (Thu Jan 10, 1:54 am)
Re: [PATCH][RFC] fast file mapping for loop, Jens Axboe, (Thu Jan 10, 2:01 am)
Re: [PATCH][RFC] fast file mapping for loop, Peter Zijlstra, (Thu Jan 10, 2:37 am)
Re: [PATCH][RFC] fast file mapping for loop, Jens Axboe, (Thu Jan 10, 2:49 am)
Re: [PATCH][RFC] fast file mapping for loop, Peter Zijlstra, (Thu Jan 10, 2:52 am)
Re: [PATCH][RFC] fast file mapping for loop, Jens Axboe, (Thu Jan 10, 3:02 am)
Re: [PATCH][RFC] fast file mapping for loop, Peter Zijlstra, (Thu Jan 10, 3:20 am)
Re: [PATCH][RFC] fast file mapping for loop, Chris Mason, (Thu Jan 10, 5:47 am)
Re: [PATCH][RFC] fast file mapping for loop, Chris Mason, (Thu Jan 10, 5:53 am)
Re: [PATCH][RFC] fast file mapping for loop, Jens Axboe, (Thu Jan 10, 5:57 am)
Re: [PATCH][RFC] fast file mapping for loop, Jens Axboe, (Thu Jan 10, 6:03 am)
Re: [PATCH][RFC] fast file mapping for loop, Chris Mason, (Thu Jan 10, 6:46 am)
Re: [PATCH][RFC] fast file mapping for loop, Bill Davidsen, (Thu Jan 10, 6:25 pm)
Re: [PATCH][RFC] fast file mapping for loop, Mikulas Patocka, (Fri Jan 11, 12:39 am)
Re: [PATCH][RFC] fast file mapping for loop, Jens Axboe, (Fri Jan 11, 12:58 am)
Re: [PATCH][RFC] fast file mapping for loop, Daniel Phillips, (Fri Jan 11, 11:17 am)
Re: [PATCH][RFC] fast file mapping for loop, Jens Axboe, (Fri Jan 11, 11:23 am)
Re: [PATCH][RFC] fast file mapping for loop, Chris Mason, (Mon Jan 14, 10:10 am)
Re: [PATCH][RFC] fast file mapping for loop, Jens Axboe, (Mon Jan 14, 10:54 am)
Re: [PATCH][RFC] fast file mapping for loop, Jens Axboe, (Tue Jan 15, 2:25 am)
Re: [PATCH][RFC] fast file mapping for loop, Jens Axboe, (Tue Jan 15, 2:36 am)
Re: [PATCH][RFC] fast file mapping for loop, Jens Axboe, (Tue Jan 15, 3:07 am)
Re: [PATCH][RFC] fast file mapping for loop, Chris Mason, (Tue Jan 15, 7:04 am)