diff options
| author | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2026-10-12 10:57:39 +0900 |
|---|---|---|
| committer | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2026-10-12 10:57:39 +0900 |
| commit | a78c645379c5d6a580a4c0d4ffe0502b20441b65 (patch) | |
| tree | 96054b3b8c0a6c83abc7eb0c4c1f2046490fab80 /tools/lib/python/kdoc/python_version.py | |
| parent | aea8c084cb93fb250f096143bf038855405456c9 (diff) | |
firewire: core: use appropriate spinlock variants for transaction-related locks
The spinlocks in the fw_card structure protect transaction-related state
from concurrent access. They are acquired mostly from process context.
The exceptions are split_transaction_timeout_callback(), which runs in
softirq context for the timer wheel, and __fw_send_request(), which may
also be called from interrupt context.
Use spin_lock() in split_transaction_timeout_callback() and
spin_lock_irqsave() in the other functions. The latter preserves and
restores the caller's interrupt state, as the callers are not guaranteed
to have interrupts enabled.
Link: https://lore.kernel.org/r/20261012015739.530731-1-o-takashi@sakamocchi.jp
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
