ext4: updated locking documentation for journal_t
authorAlexander Lochmann <alexander.lochmann@tu-dortmund.de>
Thu, 11 Feb 2021 09:51:55 +0000 (10:51 +0100)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 2 Apr 2021 15:37:58 +0000 (11:37 -0400)
commitd699ae4fc27496d01e8bc5ab2106bd79d1e7be92
treeb101b797e7a5a68c7dcdcc0fc865b169001d29bc
parentbd256fda92efe97b692dc72e246d35fa724d42d8
ext4: updated locking documentation for journal_t

Some members of transaction_t are allowed to be read without any lock
being held if consistency doesn't matter.  Based on LockDoc's
findings, we extended the locking documentation of those members.
Each one of them is marked with a short comment: "no lock for quick
racy checks".

Signed-off-by: Alexander Lochmann <alexander.lochmann@tu-dortmund.de>
Signed-off-by: Horst Schirmeier <horst.schirmeier@tu-dortmund.de>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/ad82c7a9-a624-4ed5-5ada-a6410c44c0b3@tu-dortmund.de
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
include/linux/jbd2.h