diff options
author | 2024-09-09 23:00:18 +0900 | |
---|---|---|
committer | 2024-09-09 23:00:18 +0900 | |
commit | f877f1d81b2ffcac341ff62ae076d7ad5ba83f46 (patch) | |
tree | 59972947210c65a5932c97a2dc76fe44f1b4e451 /include/linux/firewire.h | |
parent | firewire: core: move workqueue handler from 1394 OHCI driver to core function (diff) | |
download | wireguard-linux-f877f1d81b2ffcac341ff62ae076d7ad5ba83f46.tar.xz wireguard-linux-f877f1d81b2ffcac341ff62ae076d7ad5ba83f46.zip |
firewire: core: use mutex to coordinate concurrent calls to flush completions
In current implementation, test_and_set_bit_lock() is used to mediate
concurrent calls of ohci_flush_iso_completions(). However, the ad-hoc
usage of atomic operations is not preferable.
This commit uses mutex_trylock() as the similar operations. The core
function is responsible for the mediation, instead of 1394 OHCI driver.
Link: https://lore.kernel.org/r/20240909140018.65289-3-o-takashi@sakamocchi.jp
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Diffstat (limited to 'include/linux/firewire.h')
-rw-r--r-- | include/linux/firewire.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/firewire.h b/include/linux/firewire.h index f815d12deda0..19e8c5f9537c 100644 --- a/include/linux/firewire.h +++ b/include/linux/firewire.h @@ -512,6 +512,7 @@ union fw_iso_callback { struct fw_iso_context { struct fw_card *card; struct work_struct work; + struct mutex flushing_completions_mutex; int type; int channel; int speed; |