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)
commita51dca9cd3bb4ec5a05bfb6feabf024a5c808a37
tree31256b4fa3ec1d0e1e27196607499877c662ee86
parent8b67f04ab9de5d8f3a71aef72bf02c995a506db5
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