]> www.infradead.org Git - linux.git/commit
firewire: core: move workqueue handler from 1394 OHCI driver to core function
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Mon, 9 Sep 2024 14:00:17 +0000 (23:00 +0900)
committerTakashi Sakamoto <o-takashi@sakamocchi.jp>
Mon, 9 Sep 2024 14:00:17 +0000 (23:00 +0900)
commite97fb38fa1404abef72bac7de2c5bf2bbab4d93b
tree9471d2dbdf0b4fe564f250effb59c1f949e33138
parent7b713929bbd80a400ceb90f398bffe58e5cc8fc8
firewire: core: move workqueue handler from 1394 OHCI driver to core function

In current implementation, the work item for isochronous context executes
the same procedure of fw_iso_context_flush_completions() internally. There
is a space to refactor the implementation.

This commit calls fw_iso_context_flush_completions() in the work item. It
obsoletes fw_iso_context_init_work(). It also obsoletes a pair of
disable_work_sync() and enable_work() since the usage of
test_and_set_bit_lock() mediates concurrent call already.

Link: https://lore.kernel.org/r/20240909140018.65289-2-o-takashi@sakamocchi.jp
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
drivers/firewire/core-iso.c
drivers/firewire/core.h
drivers/firewire/ohci.c