]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
binder: use guards for plain mutex- and spinlock-protected sections
authorDmitry Antipov <dmantipov@yandex.ru>
Thu, 26 Jun 2025 07:30:54 +0000 (10:30 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Jul 2025 12:11:20 +0000 (14:11 +0200)
commit01afddcac630b8c6a5f44ac5d0e508ca440e44a2
treed442851c1555dc6b20f2197a39e77626219f0f66
parent1da2dca2fb3ab241da86890312f2bfb9c1d0d6c3
binder: use guards for plain mutex- and spinlock-protected sections

Use 'guard(mutex)' and 'guard(spinlock)' for plain (i.e. non-scoped)
mutex- and spinlock-protected sections, respectively, thus making
locking a bit simpler. Briefly tested with 'stress-ng --binderfs'.

Signed-off-by: Dmitry Antipov <dmantipov@yandex.ru>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Acked-by: Carlos Llamas <cmllamas@google.com>
Link: https://lore.kernel.org/r/20250626073054.7706-2-dmantipov@yandex.ru
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/android/binder.c
drivers/android/binder_alloc.c
drivers/android/binder_alloc.h