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)
commitd4e839d4a9dc31d0c229e616146b01e1ace56604
tree1a04beaeb6a438212db18548f5e0ff37b048f973
parent42cf3452d5f5b0817d27c93e4e7d7eab6e89077d
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