mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/5] firewire: cdev: refactor for bus reset event filling
@ 2026-09-20  7:14 Takashi Sakamoto
  2026-09-20  7:14 ` [PATCH 1/5] firewire: cdev: use memory barrier to access fw_device members Takashi Sakamoto
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Takashi Sakamoto @ 2026-09-20  7:14 UTC (permalink / raw)
  To: linux1394-devel; +Cc: linux-kernel

Hi,

In the cdev layer, there are two places where bus reset events are filed;
the update path for the associated fw_device instance and the get_info
ioctl call. There is still some code that can be refactored in these
paths.

This series refactors the code to make the memory ordering and locking
scope more explicit, and adds a KUnit test for the bus reset event UAPI
structure.

Takashi Sakamoto (5):
  firewire: cdev: use memory barrier to access fw_device members
  firewire: cdev: refactor using scoped_guard() for get_info ioctl call
  firewire: cdev: refactor copy_to_user() in get_info ioctl call
  firewire: cdev: add annotations and comments about race condition of
    bus_reset_closure
  firewire: cdev: add KUnit test for bus reset event UAPI structure

 drivers/firewire/core-cdev.c | 63 +++++++++++++++++++++++-------------
 drivers/firewire/uapi-test.c | 20 ++++++++++++
 2 files changed, 60 insertions(+), 23 deletions(-)


base-commit: a20545fbf9226591017fc371bdfb1bfd490b0e0b
-- 
2.53.0


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

end of thread, other threads:[~2026-09-21  2:32 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-20  7:14 [PATCH 0/5] firewire: cdev: refactor for bus reset event filling Takashi Sakamoto
2026-09-20  7:14 ` [PATCH 1/5] firewire: cdev: use memory barrier to access fw_device members Takashi Sakamoto
2026-09-20  7:14 ` [PATCH 2/5] firewire: cdev: refactor using scoped_guard() for get_info ioctl call Takashi Sakamoto
2026-09-20  7:14 ` [PATCH 3/5] firewire: cdev: refactor copy_to_user() in " Takashi Sakamoto
2026-09-20  7:15 ` [PATCH 4/5] firewire: cdev: add annotations and comments about race condition of bus_reset_closure Takashi Sakamoto
2026-09-20  7:15 ` [PATCH 5/5] firewire: cdev: add KUnit test for bus reset event UAPI structure Takashi Sakamoto
2026-09-21  2:32 ` [PATCH 0/5] firewire: cdev: refactor for bus reset event filling Takashi Sakamoto

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

all inboxes | Powered by JetHome®