[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20100423002554.GB25327@quack.suse.cz>
Date: Fri, 23 Apr 2010 02:25:55 +0200
From: Jan Kara <jack@...e.cz>
To: linux-ext4@...r.kernel.org
Cc: tytso@....edu
Subject: [RFC][PATCH] Journal superblock update should send a barrier
Hi,
while reading through the checkpointing code I've realized that we
actually have to send a barrier before each update of journal superblock
after checkpointing. Attached patch does this. Just I'm not sure whether
the performance cost won't be too big. In principle, we could make this
more lightweight by using the fact that transaction commit also sends the
barrier. So we could check before sending a barrier for transaction commit
whether we are slowly running out of journal space and if so whether some
transaction isn't already checkpointed. If yes, we can happily submit
update of journal superblock after the barrier. In case journal is decently
large this should solve the checkpointing problem without introducing
noticeable overhead...
Honza
--
Jan Kara <jack@...e.cz>
SUSE Labs, CR
View attachment "0001-ext4-Send-barrier-before-updating-journal-superblock.patch" of type "text/x-patch" (2326 bytes)
Powered by blists - more mailing lists