]> git.baikalelectronics.ru Git - kernel.git/commit
jbd2: don't read journal->j_commit_sequence without taking a lock
authorHarshad Shirwadkar <harshadshirwadkar@gmail.com>
Fri, 6 Nov 2020 03:59:01 +0000 (19:59 -0800)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 7 Nov 2020 04:01:04 +0000 (23:01 -0500)
commit8ce655a10f7ceb978010969a8945e7599594022c
tree21e61078d9f9a999c939f1d009478e51e6531490
parentbe48bf6b4bca0e23d3dd6e1f4e0d5978b56d52cb
jbd2: don't read journal->j_commit_sequence without taking a lock

Take journal state lock before reading journal->j_commit_sequence.

Signed-off-by: Harshad Shirwadkar <harshadshirwadkar@gmail.com>
Link: https://lore.kernel.org/r/20201106035911.1942128-13-harshadshirwadkar@gmail.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/jbd2/journal.c