diff options
Diffstat (limited to 'fs/jbd2/commit.c')
-rw-r--r-- | fs/jbd2/commit.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/jbd2/commit.c b/fs/jbd2/commit.c index 6986f334c643..39b5cee3dd8a 100644 --- a/fs/jbd2/commit.c +++ b/fs/jbd2/commit.c | |||
@@ -867,10 +867,10 @@ restart_loop: | |||
867 | } | 867 | } |
868 | spin_unlock(&journal->j_list_lock); | 868 | spin_unlock(&journal->j_list_lock); |
869 | /* | 869 | /* |
870 | * This is a bit sleazy. We borrow j_list_lock to protect | 870 | * This is a bit sleazy. We use j_list_lock to protect transition |
871 | * journal->j_committing_transaction in __jbd2_journal_remove_checkpoint. | 871 | * of a transaction into T_FINISHED state and calling |
872 | * Really, __jbd2_journal_remove_checkpoint should be using j_state_lock but | 872 | * __jbd2_journal_drop_transaction(). Otherwise we could race with |
873 | * it's a bit hassle to hold that across __jbd2_journal_remove_checkpoint | 873 | * other checkpointing code processing the transaction... |
874 | */ | 874 | */ |
875 | spin_lock(&journal->j_state_lock); | 875 | spin_lock(&journal->j_state_lock); |
876 | spin_lock(&journal->j_list_lock); | 876 | spin_lock(&journal->j_list_lock); |