]> git.baikalelectronics.ru Git - kernel.git/commit
jbd2: Use atomic variables to avoid taking t_handle_lock in jbd2_journal_stop
authorTheodore Ts'o <tytso@mit.edu>
Mon, 2 Aug 2010 12:43:25 +0000 (08:43 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 2 Aug 2010 12:43:25 +0000 (08:43 -0400)
commit0e5f01d6a29babd61de6b020cb3cee69b9e4c5f7
tree31256b4fa3ec1d0e1e27196607499877c662ee86
parenta2acdc8e2615fac9878d91c1e757816aa9efbcd8
jbd2: Use atomic variables to avoid taking t_handle_lock in jbd2_journal_stop

By using an atomic_t for t_updates and t_outstanding credits, this
should allow us to not need to take transaction t_handle_lock in
jbd2_journal_stop().

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