public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/6] firewire: core: partition fw_card spinlock
@ 2025-09-15 23:47 Takashi Sakamoto
  2025-09-15 23:47 ` [PATCH 1/6] firewire: core: use scoped_guard() to manage critical section to update topology Takashi Sakamoto
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Takashi Sakamoto @ 2025-09-15 23:47 UTC (permalink / raw)
  To: linux1394-devel; +Cc: linux-kernel

Hi,

The current implementation uses the fw_card spinlock for a wide range of
purposes, which goes against the theory that the type of lock should
protect critical sections as narrowly as possible.

This patchset adds some spinlocks for specific purposes, therefore
partitioning the existing wide-purpose lock.

Takashi Sakamoto (6):
  firewire: core: use scoped_guard() to manage critical section to
    update topology
  firewire: core: maintain phy packet receivers locally in cdev layer
  firewire: core: use spin lock specific to topology map
  firewire: core: use spin lock specific to transaction
  firewire: core: use spin lock specific to timer for split transaction
  firewire: core: annotate fw_destroy_nodes with must-hold-lock

 drivers/firewire/core-card.c        |  23 +++--
 drivers/firewire/core-cdev.c        |  27 ++++--
 drivers/firewire/core-topology.c    |  92 ++++++++++----------
 drivers/firewire/core-transaction.c | 128 ++++++++++++++++++----------
 include/linux/firewire.h            |  33 ++++---
 5 files changed, 185 insertions(+), 118 deletions(-)


base-commit: 931383f161c066ac5fda12035540498931739842
-- 
2.48.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-09-16 23:36 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-15 23:47 [PATCH 0/6] firewire: core: partition fw_card spinlock Takashi Sakamoto
2025-09-15 23:47 ` [PATCH 1/6] firewire: core: use scoped_guard() to manage critical section to update topology Takashi Sakamoto
2025-09-15 23:47 ` [PATCH 2/6] firewire: core: maintain phy packet receivers locally in cdev layer Takashi Sakamoto
2025-09-15 23:47 ` [PATCH 3/6] firewire: core: use spin lock specific to topology map Takashi Sakamoto
2025-09-15 23:47 ` [PATCH 4/6] firewire: core: use spin lock specific to transaction Takashi Sakamoto
2025-09-15 23:47 ` [PATCH 5/6] firewire: core: use spin lock specific to timer for split transaction Takashi Sakamoto
2025-09-15 23:47 ` [PATCH 6/6] firewire: core: annotate fw_destroy_nodes with must-hold-lock Takashi Sakamoto
2025-09-16 23:36 ` [PATCH 0/6] firewire: core: partition fw_card spinlock Takashi Sakamoto

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox