diff options
author | Alexander Lochmann <alexander.lochmann@tu-dortmund.de> | 2020-10-15 15:24:52 +0200 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2020-12-03 09:00:55 -0500 |
commit | 50a4952fd67b7f7f551e82ac07c51c1a7a74d474 (patch) | |
tree | aa65e12190c2375dcedd691187217bae5deac5cd /include | |
parent | 418baf2c28f3473039f2f7377760bd8f6897ae18 (diff) | |
download | linux-stable-50a4952fd67b7f7f551e82ac07c51c1a7a74d474.tar.gz linux-stable-50a4952fd67b7f7f551e82ac07c51c1a7a74d474.tar.bz2 linux-stable-50a4952fd67b7f7f551e82ac07c51c1a7a74d474.zip |
Updated locking documentation for transaction_t
We used LockDoc to derive locking rules for each member
of struct transaction_t.
Based on those results, we extended the existing documentation
by more members of struct transaction_t, and updated the existing
documentation.
Link: https://lore.kernel.org/r/10cfbef1-994c-c604-f8a6-b1042fcc622f@tu-dortmund.de
Signed-off-by: Alexander Lochmann <alexander.lochmann@tu-dortmund.de>
Signed-off-by: Horst Schirmeier <horst.schirmeier@tu-dortmund.de>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/jbd2.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/jbd2.h b/include/linux/jbd2.h index 578ff196b3ce..d2a4860feb72 100644 --- a/include/linux/jbd2.h +++ b/include/linux/jbd2.h @@ -538,6 +538,7 @@ struct transaction_chp_stats_s { * The transaction keeps track of all of the buffers modified by a * running transaction, and all of the buffers committed but not yet * flushed to home for finished transactions. + * (Locking Documentation improved by LockDoc) */ /* @@ -658,12 +659,12 @@ struct transaction_s unsigned long t_start; /* - * When commit was requested + * When commit was requested [j_state_lock] */ unsigned long t_requested; /* - * Checkpointing stats [j_checkpoint_sem] + * Checkpointing stats [j_list_lock] */ struct transaction_chp_stats_s t_chp_stats; |