]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
[PATCH] ocfs2: only checkpoint journal when asked to
authorMark Fasheh <mark.fasheh@oracle.com>
Thu, 9 Feb 2006 21:23:39 +0000 (13:23 -0800)
committerMark Fasheh <mark.fasheh@oracle.com>
Thu, 16 Feb 2006 20:04:10 +0000 (12:04 -0800)
Disable automatic checkpointing of the journal - this is a relic from older
ocfs2 days. Worth quite a bit of performance on longer running single node
tests.

Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
fs/ocfs2/journal.c
fs/ocfs2/journal.h

index fa0bcac5ceaef0aeef8539f45a4b7ace3c6be648..d329c9df90ae8f19f03d03af7d8bd4036b22bf94 100644 (file)
@@ -1584,10 +1584,9 @@ static int ocfs2_commit_thread(void *arg)
        while (!(kthread_should_stop() &&
                 atomic_read(&journal->j_num_trans) == 0)) {
 
-               wait_event_interruptible_timeout(osb->checkpoint_event,
-                                                atomic_read(&journal->j_num_trans)
-                                                || kthread_should_stop(),
-                                                OCFS2_CHECKPOINT_INTERVAL);
+               wait_event_interruptible(osb->checkpoint_event,
+                                        atomic_read(&journal->j_num_trans)
+                                        || kthread_should_stop());
 
                status = ocfs2_commit_cache(osb);
                if (status < 0)
index 7d0a816184fa79cffa300c8ee6bcd391f6a97972..2f3a6acdac452e590e67e1235e3225c8975aeb8e 100644 (file)
@@ -29,8 +29,6 @@
 #include <linux/fs.h>
 #include <linux/jbd.h>
 
-#define OCFS2_CHECKPOINT_INTERVAL        (8 * HZ)
-
 enum ocfs2_journal_state {
        OCFS2_JOURNAL_FREE = 0,
        OCFS2_JOURNAL_LOADED,