firewire: cdev: use single object to dispatch event for request to IEC 61883-1 FCP...
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Fri, 20 Jan 2023 09:03:44 +0000 (18:03 +0900)
committerTakashi Iwai <tiwai@suse.de>
Mon, 23 Jan 2023 08:17:46 +0000 (09:17 +0100)
commit39859be8537ca372c48b76458f498064e075aaa3
tree59c3f69f6d446fab713eed795d61e620f32c2768
parente699600232e0ca6237b996aa1a94a056cf776582
firewire: cdev: use single object to dispatch event for request to IEC 61883-1 FCP region

The core function always passes the data of request to the callback of
listener in any case. Additionally, the listener can maintain the lifetime
of data by reference count. In character device, no need to duplicate the
payload of request anymore to copy it to user space.

This commit extends the lifetime of data to obsolete duplication of
payload for request in character device.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Link: https://lore.kernel.org/r/20230120090344.296451-4-o-takashi@sakamocchi.jp
Signed-off-by: Takashi Iwai <tiwai@suse.de>
drivers/firewire/core-cdev.c