diff options
author | Ioannis Angelakopoulos <iangelak@fb.com> | 2022-07-26 01:11:52 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2022-09-26 13:27:53 +0300 |
commit | 3e738c531aad8caa7f3d20ab878a8a0d3574e730 (patch) | |
tree | c8ea00e93b77465a34ce0f5fec5bf0dcacdeaf68 /crypto/crc32c_generic.c | |
parent | 5a9ba6709f13313984900d635b4c73c9eb7d644e (diff) | |
download | linux-3e738c531aad8caa7f3d20ab878a8a0d3574e730.tar.xz |
btrfs: add lockdep annotations for transaction states wait events
Add lockdep annotations for the transaction states that have wait
events;
1) TRANS_STATE_COMMIT_START
2) TRANS_STATE_UNBLOCKED
3) TRANS_STATE_SUPER_COMMITTED
4) TRANS_STATE_COMPLETED
The new macros introduced here to annotate the transaction states wait
events have the same effect as the generic lockdep annotation macros.
With the exception of the lockdep annotation for TRANS_STATE_COMMIT_START
the transaction thread has to acquire the lockdep maps for the
transaction states as reader after the lockdep map for num_writers is
released so that lockdep does not complain.
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Ioannis Angelakopoulos <iangelak@fb.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'crypto/crc32c_generic.c')
0 files changed, 0 insertions, 0 deletions