]> 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)
commitdb2e3a3fa9a3bf212e4f751bb3c519aa8706d2e9
tree21e61078d9f9a999c939f1d009478e51e6531490
parent7bc6d50c9f0a59d12ccb54565fad6fa20e6c8706
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