Re: [PATCH] jbd: abort instead of waiting for nonexistent transactions

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Duane Griffin <duaneg@...>
Cc: linux-kernel <linux-kernel@...>, Andrew Morton <akpm@...>, <linux-ext4@...>, Sami Liedes <sliedes@...>, Stephen Tweedie <sct@...>
Date: Thursday, August 7, 2008 - 11:01 am

Hi,

On Thu, 2008-08-07 at 01:47 +0100, Duane Griffin wrote:


Right: in journal.c we initialise the maximum size of a transaction to

	journal->j_max_transaction_buffers = journal->j_maxlen / 4;

(the logic being that we need the journal to be able to hold an absolute
minimum of one full transaction being checkpointed, one being committed,
and one being live concurrently for the transaction engine to work
correctly, which gives three outstanding transactions; we up that to
four to protect against rounding errors and to ensure space for the
sequence and commit blocks that take up log space in addition to the
journaled buffers themselves.)

If, during journal load, that's not enough for a minimum-sized single
update, we'll never be able to start some transactions, so that would be
a good place to check that we're starting off with a large enough
journal.

--Stephen




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

Messages in current thread:
Re: [PATCH] jbd: abort instead of waiting for nonexistent tr..., Stephen C. Tweedie, (Tue Aug 5, 11:50 am)
Re: [PATCH] jbd: abort instead of waiting for nonexistent tr..., Stephen C. Tweedie, (Thu Aug 7, 11:01 am)