mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Carlos Llamas <cmllamas@google.com>
To: Dmitry Antipov <dmantipov@yandex.ru>
Cc: "Arve Hjønnevåg" <arve@android.com>,
	"Todd Kjos" <tkjos@android.com>,
	"Martijn Coenen" <maco@android.com>,
	"Tiffany Y . Yang" <ynaffit@google.com>,
	linux-kernel@vger.kernel.org,
	"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>
Subject: Re: [PATCH 2/2] binder: use guards for plain mutex- and spinlock-protected sections
Date: Tue, 15 Jul 2025 03:51:51 +0000	[thread overview]
Message-ID: <aHXQVzw5OFENVRR1@google.com> (raw)
In-Reply-To: <20250626073054.7706-2-dmantipov@yandex.ru>

On Thu, Jun 26, 2025 at 10:30:54AM +0300, Dmitry Antipov wrote:
> 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>
> ---
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

This looks correct. Thanks!

Acked-by: Carlos Llamas <cmllamas@google.com>

  reply	other threads:[~2025-07-15  3:51 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-06-26  7:30 [PATCH 1/2] binder: use kstrdup() in binderfs_binder_device_create() Dmitry Antipov
2025-06-26  7:30 ` [PATCH 2/2] binder: use guards for plain mutex- and spinlock-protected sections Dmitry Antipov
2025-07-15  3:51   ` Carlos Llamas [this message]
2025-07-15  7:38   ` Alice Ryhl
2025-06-26 17:30 ` [PATCH 1/2] binder: use kstrdup() in binderfs_binder_device_create() Tiffany Yang
2025-07-15  3:45 ` Carlos Llamas
2025-07-15  7:32 ` Alice Ryhl

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aHXQVzw5OFENVRR1@google.com \
    --to=cmllamas@google.com \
    --cc=arve@android.com \
    --cc=dmantipov@yandex.ru \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=maco@android.com \
    --cc=tkjos@android.com \
    --cc=ynaffit@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®