]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] Fix reiserfs latencies caused by data=ordered
authorChris Mason <mason@suse.com>
Fri, 29 Sep 2006 08:59:56 +0000 (01:59 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 29 Sep 2006 16:18:11 +0000 (09:18 -0700)
commit720f69a18c6fb4121345c41dd2bff65a376d45c8
tree9da7b5eafe136c8c5b9e76e9a9cccd70899df252
parentd63f5983bbd6659b3c1f8bbcebf5cfdcc18c53f1
[PATCH] Fix reiserfs latencies caused by data=ordered

ReiserFS does periodic cleanup of old transactions in order to limit the
length of time a journal replay may take after a crash.  Sometimes, writing
metadata from an old (already committed) transaction may require committing
a newer transaction, which also requires writing all data=ordered buffers.
This can cause very long stalls on journal_begin.

This patch makes sure new transactions will not need to be committed before
trying a periodic reclaim of an old transaction.  It is low risk because if
a bad decision is made, it just means a slightly longer journal replay
after a crash.

Signed-off-by: Chris Mason <mason@suse.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/reiserfs/journal.c