]> www.infradead.org Git - linux.git/commit
firewire: core: use guard macro to maintain the list of cdev clients
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Mon, 5 Aug 2024 08:53:54 +0000 (17:53 +0900)
committerTakashi Sakamoto <o-takashi@sakamocchi.jp>
Mon, 5 Aug 2024 08:53:54 +0000 (17:53 +0900)
commit044ce581ab28f640d3997cb38e1ddda782238abb
treed635a80334a6d2b68844657166871ee8b4e0db54
parent57b40ec6db94dd325a76ad0a0fd1173a7cbfcc81
firewire: core: use guard macro to maintain the list of cdev clients

The core function maintains userspace clients by the list in fw_device
object associated to the operated character device. The concurrent
access to the list is protected by mutex in the object.

This commit uses guard macro to maintain the mutex.

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