OpenVZ Forum


Home » Mailing lists » Devel » [KERNEL COMMIT]: diff-ms-jbd-checkpoint-20050602
[KERNEL COMMIT]: diff-ms-jbd-checkpoint-20050602 [message #516] Wed, 14 December 2005 08:39
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

Committed in 022stab055

Patch from mainstream:
[PATCH] ext3: fix log_do_checkpoint() assertion failure

Fix possible false assertion failure in log_do_checkpoint(). We might fail
to detect that we actually made a progress when cleaning up the checkpoint
lists if we don't retry after writing something to disk. The patch was
confirmed to fix observed assertion failures for several users.

When we flushed some buffers we need to retry scanning the list.
Otherwise we can fail to detect our progress.

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

GIT: 00ea81459c279f14a7b344320a71c94f60f88929
http://linux.bkbits.net:8080/linux-2.6/cset@1.3104.1.1


diff -Naru a/fs/jbd/checkpoint.c b/fs/jbd/checkpoint.c
--- a/fs/jbd/checkpoint.c 2005-12-14 00:35:42 -08:00
+++ b/fs/jbd/checkpoint.c 2005-12-14 00:35:42 -08:00
@@ -339,8 +339,10 @@
}
} while (jh != last_jh && !retry);

- if (batch_count)
+ if (batch_count) {
__flush_batch(journal, bhs, &batch_count);
+ retry = 1;
+ }

/*
* If someone cleaned up this transaction while we slept, we're
# This is a BitKeeper generated diff -Nru style patch.
#
# ChangeSet
# 2005/06/02 15:12:29-07:00 jack@suse.cz
# [PATCH] ext3: fix log_do_checkpoint() assertion failure
#
# Fix possible false assertion failure in log_do_checkpoint(). We might fail
# to detect that we actually made a progress when cleaning up the checkpoint
# lists if we don't retry after writing something to disk. The patch was
# confirmed to fix observed assertion failures for several users.
#
# When we flushed some buffers we need to retry scanning the list.
# Otherwise we can fail to detect our progress.
#
# Signed-off-by: Jan Kara <jack@suse.cz>
# Signed-off-by: Andrew Morton <akpm@osdl.org>
# Signed-off-by: Linus Torvalds <torvalds@osdl.org>
#
# GIT: 00ea81459c279f14a7b344320a71c94f60f88929
#
# fs/jbd/checkpoint.c
# 2005/06/02 15:12:29-07:00 jack@suse.cz +3 -1
#
# http://linux.bkbits.net:8080/linux-2.6/cset@1.3104.1.1
Previous Topic: [PATCH] fix of BUG_ON in drop_buffers
Next Topic: [KERNEL COMMIT]: diff-ms-mm-pageprivate-20051213
Goto Forum:
  


Current Time: Sun Aug 24 16:18:06 GMT 2025

Total time taken to generate the page: 0.06070 seconds