summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>2026-10-11 15:31:43 +0900
committerTakashi Sakamoto <o-takashi@sakamocchi.jp>2026-10-11 15:31:43 +0900
commit15efe5cec615ee71ded805dbbc9fea8e8e020c81 (patch)
treed5c7c50db36f50e654e2dae0b16bec44f2fdf50e /include/linux
parent382e671eaca3afa004dd74d4441427ddb9962a52 (diff)
downloadlinux-15efe5cec615ee71ded805dbbc9fea8e8e020c81.tar.gz
linux-15efe5cec615ee71ded805dbbc9fea8e8e020c81.zip
firewire: core: use context analysis annotations and lockdep checks for transactions lock
The transaction lock protects the list of pending transactions and the transaction label. Add context analysis annotations for the transaction lock. Compiler-based context analysis has difficulty tracking the locking scope when the lock is accessed through an indirect reference (e.g. t->card->lock), making some functions difficult to annotate. Use lockdep assertions to cover these cases. Link: https://lore.kernel.org/r/20261011063146.497455-4-o-takashi@sakamocchi.jp Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/firewire.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/firewire.h b/include/linux/firewire.h
index dbb5c825a1cc..89db958dea2e 100644
--- a/include/linux/firewire.h
+++ b/include/linux/firewire.h
@@ -92,9 +92,9 @@ struct fw_card {
u64 reset_jiffies;
struct {
- int current_tlabel;
- u64 tlabel_mask;
- struct list_head list;
+ int current_tlabel __guarded_by(&lock);
+ u64 tlabel_mask __guarded_by(&lock);
+ struct list_head list __guarded_by(&lock);
spinlock_t lock;
} transactions;