ext4: annotate data race in start_this_handle()
authorJan Kara <jack@suse.cz>
Tue, 6 Apr 2021 16:17:59 +0000 (18:17 +0200)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 10 Apr 2021 01:19:32 +0000 (21:19 -0400)
commit3b1833e92baba135923af4a07e73fe6e54be5a2f
tree1217f69aa4503b53d733a74f20536cada00608a4
parent6810fad956df9e5467e8e8a5ac66fda0836c71fa
ext4: annotate data race in start_this_handle()

Access to journal->j_running_transaction is not protected by appropriate
lock and thus is racy. We are well aware of that and the code handles
the race properly. Just add a comment and data_race() annotation.

Cc: stable@kernel.org
Reported-by: syzbot+30774a6acf6a2cf6d535@syzkaller.appspotmail.com
Signed-off-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20210406161804.20150-1-jack@suse.cz
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/jbd2/transaction.c