]> git.proxmox.com Git - mirror_ubuntu-hirsute-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)
commit480f89d553260e7823920e687846877bebc8dca0
tree21e61078d9f9a999c939f1d009478e51e6531490
parent0ee66ddcf3c1503a9bdb3e49a7a96c6e429ddfad
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