From: Steven Rostedt <rostedt@goodmis.org>
To: Crystal Wood <crwood@redhat.com>
Cc: Tomas Glozar <tglozar@redhat.com>, John Kacur <jkacur@redhat.com>,
linux-trace-kernel@vger.kernel.org
Subject: Re: [PATCH v7 08/10] tracing/osnoise: Take trace_types_lock in timerlat_fd_open
Date: Wed, 25 Nov 2026 09:14:28 -0500 [thread overview]
Message-ID: <20261125091428.5783cc9c@gandalf.local.home> (raw)
In-Reply-To: <20261113064103.3041704-9-crwood@redhat.com>
On Fri, 13 Nov 2026 00:41:01 -0600
Crystal Wood <crwood@redhat.com> wrote:
Hi Crystal,
> This prevents a user fd from being opened when osnoise_options_write()
> has already stopped threads but not yet set OSN_WORKLOAD, and matches what
> all callers of start_kthread() do.
>
> The original intent was probably for interface_lock to cover things like
> this, but it never covered the full race window, and currently can't
> due to lock order issues stemming from using interface_lock in
> osnoise_sleep(). There does not appear to be any remaining reason
> to take interface_lock in timerlat_fd_open(), so remove it.
>
> Signed-off-by: Crystal Wood <crwood@redhat.com>
> ---
> v2: convert rest of function to guards
Ha! I see this does what I asked for in my reply of patch 5.
Please, fold this into that patch instead of adding a bunch of gotos and
then removing them.
Thanks,
-- Steve
next prev parent reply other threads:[~2026-11-25 14:14 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-13 6:40 [PATCH v7 00/10] tracing/osnoise: Synchronization fixes Crystal Wood
2026-11-13 6:40 ` [PATCH v7 01/10] tracing/osnoise: Variable cleanup Crystal Wood
2026-11-25 14:06 ` Steven Rostedt
2026-11-13 6:40 ` [PATCH v7 02/10] tracing/osnoise: start_kthread: Always check OSN_WORKLOAD Crystal Wood
2026-11-25 13:49 ` Steven Rostedt
2026-11-13 6:40 ` [PATCH v7 03/10] tracing/osnoise: Start all eligible cpus from hotplug workfn Crystal Wood
2026-11-13 6:51 ` sashiko-bot
2026-11-13 6:40 ` [PATCH v7 04/10] tracing/osnoise: Hold a ref on osn->kthread Crystal Wood
2026-11-13 6:40 ` [PATCH v7 05/10] tracing/osnoise: Per-cpu mutexes and fd detachment Crystal Wood
2026-11-13 7:14 ` sashiko-bot
2026-11-13 20:23 ` Crystal Wood
2026-11-25 14:01 ` Steven Rostedt
2026-11-25 14:16 ` Steven Rostedt
2026-11-13 6:40 ` [PATCH v7 06/10] tracing/osnoise: Reset cleanup Crystal Wood
2026-11-13 7:20 ` sashiko-bot
2026-11-13 20:38 ` Crystal Wood
2026-11-13 6:41 ` [PATCH v7 07/10] tracing/osnoise: kthreads: Verify CPU after migrate_disable() Crystal Wood
2026-11-13 6:41 ` [PATCH v7 08/10] tracing/osnoise: Take trace_types_lock in timerlat_fd_open Crystal Wood
2026-11-25 14:14 ` Steven Rostedt [this message]
2026-11-13 6:41 ` [PATCH v7 09/10] tracing/osnoise: Print taint message for timerlat Crystal Wood
2026-11-13 6:41 ` [PATCH v7 10/10] tracing/osnoise: Refuse timerlat fd open if tracer inactive Crystal Wood
2026-11-13 6:55 ` sashiko-bot
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=20261125091428.5783cc9c@gandalf.local.home \
--to=rostedt@goodmis.org \
--cc=crwood@redhat.com \
--cc=jkacur@redhat.com \
--cc=linux-trace-kernel@vger.kernel.org \
--cc=tglozar@redhat.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