Skip to content

Commit

Permalink
jbd2: update locking documentation for transaction_t
Browse files Browse the repository at this point in the history
The following members of struct transaction_s aka transaction_t
were turned into lock-free variables in the past:
- t_updates
- t_outstanding_credits
- t_handle_count
However, the documentation has not been updated yet.
This commit replaced the annotated lock by [none].

Found by LockDoc (Alexander Lochmann, Horst Schirmeier and Olaf Spinczyk)

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>
  • Loading branch information
Alexander Lochmann authored and Theodore Ts'o committed Dec 4, 2018
1 parent 50c15df commit 32ea275
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/linux/jbd2.h
Original file line number Diff line number Diff line change
Expand Up @@ -663,13 +663,13 @@ struct transaction_s

/*
* Number of outstanding updates running on this transaction
* [t_handle_lock]
* [none]
*/
atomic_t t_updates;

/*
* Number of buffers reserved for use by all handles in this transaction
* handle but not yet modified. [t_handle_lock]
* handle but not yet modified. [none]
*/
atomic_t t_outstanding_credits;

Expand All @@ -691,7 +691,7 @@ struct transaction_s
ktime_t t_start_time;

/*
* How many handles used this transaction? [t_handle_lock]
* How many handles used this transaction? [none]
*/
atomic_t t_handle_count;

Expand Down

0 comments on commit 32ea275

Please sign in to comment.