From: Peter Zijlstra <peterz@infradead.org>
To: Dominik Maier <dmnk@google.com>
Cc: Ingo Molnar <mingo@redhat.com>,
Namhyung Kim <namhyung@kernel.org>,
Arnaldo Carvalho de Melo <acme@kernel.org>,
Marco Elver <elver@google.com>, Jiri Olsa <jolsa@kernel.org>,
Mark Rutland <mark.rutland@arm.com>,
Ian Rogers <irogers@google.com>,
linux-perf-users@vger.kernel.org, dmnk+artist@google.com
Subject: Re: [PATCH] perf/hw_breakpoint: fix ctx->mutex vs perf_event_mutex inversion on attr modify
Date: Thu, 26 Nov 2026 16:30:41 +0100 [thread overview]
Message-ID: <20261126153041.GI49833@noisy.programming.kicks-ass.net> (raw)
In-Reply-To: <20261124181148.144716-1-dmnk@google.com>
On Tue, Nov 24, 2026 at 06:11:48PM +0000, Dominik Maier wrote:
> Hi Peter,
>
> Thanks for checking. I'll switch the second Fixes tag to 82aad7ff7ac2.
>
> For the lock: since perf_event_modify_attr() walks child_list inside
> ctx->mutex, hoisting each target task's perf_event_mutex out doesn't
> look workable. Would you prefer a dedicated mutex on task_struct under
> CONFIG_HAVE_HW_BREAKPOINT, or a larger cacheline-aligned hash table?
I'm not sure; you're at google and should have access to both very
large machines and the workload Marco and co have created this stuff
for.
Did you run your patch on that workload?
prev parent reply other threads:[~2026-11-26 15:30 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-19 19:22 [PATCH] perf/hw_breakpoint: fix ctx->mutex vs perf_event_mutex inversion on attr modify Dominik Maier
2026-11-19 19:31 ` sashiko-bot
2026-11-20 11:56 ` Peter Zijlstra
2026-11-24 18:11 ` Dominik Maier
2026-11-26 15:30 ` Peter Zijlstra [this message]
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=20261126153041.GI49833@noisy.programming.kicks-ass.net \
--to=peterz@infradead.org \
--cc=acme@kernel.org \
--cc=dmnk+artist@google.com \
--cc=dmnk@google.com \
--cc=elver@google.com \
--cc=irogers@google.com \
--cc=jolsa@kernel.org \
--cc=linux-perf-users@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=mingo@redhat.com \
--cc=namhyung@kernel.org \
/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