]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit277aac6c06df00d1a11c32c5ee387fa98984e7bc
treeb101b797e7a5a68c7dcdcc0fc865b169001d29bc
parente171a6e2fbef22c42f614aa2770928c6e8b775b6
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