[Ocfs2-devel] [PATCH 3/4] ocfs2: Fixes tiny race between mount and recovery
Joel Becker
Joel.Becker at oracle.com
Tue Jul 8 11:17:06 PDT 2008
On Tue, Jul 08, 2008 at 10:08:38AM -0700, Sunil Mushran wrote:
> Instead of using generation, we could use ij_pad. Renamed to
> something appropriate.
I like that, as it is specific to the journal part and leaves
i_generation alone. Can we see ourselves needing any other use of that
word?
Joel
> Sunil Mushran wrote:
>> Possible Solution:
>> Use the i_generation in the journal inode as a recovery counter.
>> Meaning, we increment it each time we recover the journal. That
>> is, from mount thread in ocfs2_journal_load() and from recovery
>> thread in ocfs2_replay_journal(). In both places, we have the
>> superblock lock making the writes safe.
--
"When ideas fail, words come in very handy."
- Goethe
Joel Becker
Principal Software Developer
Oracle
E-mail: joel.becker at oracle.com
Phone: (650) 506-8127
More information about the Ocfs2-devel
mailing list