]> git.karo-electronics.de Git - karo-tx-linux.git/commit
jbd2: round commit timer up to avoid uncommitted transaction
authorAndreas Dilger <adilger@sun.com>
Tue, 11 Aug 2009 02:51:53 +0000 (22:51 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 14 Dec 2009 16:06:04 +0000 (08:06 -0800)
commit65ccfef90fb74d4afd2414bc389a29f1a2dd94db
tree36d6274f82b283cfee54d40958a9cff71a62abe6
parent34dd3ffe4b57ce9e38ad3258dae5051c7c6a204b
jbd2: round commit timer up to avoid uncommitted transaction

(cherry picked from commit b1f485f20eb9b02cc7d2009556287f3939d480cc)

fix jiffie rounding in jbd commit timer setup code.  Rounding down
could cause the timer to be fired before the corresponding transaction
has expired.  That transaction can stay not committed forever if no
new transaction is created or expicit sync/umount happens.

Signed-off-by: Alex Zhuravlev (Tomas) <alex.zhuravlev@sun.com>
Signed-off-by: Andreas Dilger <adilger@sun.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/jbd2/transaction.c