]> git.baikalelectronics.ru Git - kernel.git/commit
jbd2: add transaction to checkpoint list earlier
authorTheodore Ts'o <tytso@mit.edu>
Sun, 9 Mar 2014 03:34:10 +0000 (22:34 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 9 Mar 2014 03:34:10 +0000 (22:34 -0500)
commit7eb9ab6b73ca7980fd76004327c3aa8393d21927
tree1a04beaeb6a438212db18548f5e0ff37b048f973
parent0966141a45a447eb0ed9cb2b1f6486090f8a7e3e
jbd2: add transaction to checkpoint list earlier

We don't otherwise need j_list_lock during the rest of commit phase
#7, so add the transaction to the checkpoint list at the very end of
commit phase #6.  This allows us to drop j_list_lock earlier, which is
a good thing since it is a super hot lock.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/jbd2/commit.c