Re: [PATCH 01/13] writeback: IO-less balance_dirty_pages()

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Ted Ts'o
Date: Monday, December 6, 2010 - 5:34 am

On Mon, Dec 06, 2010 at 12:52:21PM +0300, Dmitry wrote:

Yeah, I'd really rather not do that.  There are significant downsides
with your proposed odelalloc=force mode.  One of which is that we
could run out of space and not notice.  If the application doesn't
call fsync() and check the return value, and simply closes()'s the
file and then exits, when the writeback threads do get around to
writing the file, the block allocation could fail, and oops, data gets
lost.  There's a _reason_ why we disable delalloc when we're close to
a full fs.  The only alternative is to super conservative when doing
your block reservation calculations, and in that case, you end up
returning ENOSPC far too soon.

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

Messages in current thread:
[PATCH 01/13] writeback: IO-less balance_dirty_pages() , Wu Fengguang, (Tue Nov 16, 9:27 pm)
Re: [PATCH 01/13] writeback: IO-less balance_dirty_pages(), Peter Zijlstra, (Thu Nov 18, 6:04 am)
Re: [PATCH 01/13] writeback: IO-less balance_dirty_pages(), Ted Ts'o, (Mon Dec 6, 5:34 am)