mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Gabriele Monaco <gmonaco@redhat.com>
To: Wen Yang <wen.yang@linux.dev>,
	linux-kernel@vger.kernel.org,
	Steven Rostedt	 <rostedt@goodmis.org>,
	Nam Cao <namcao@linutronix.de>,
	 linux-trace-kernel@vger.kernel.org
Cc: Karl Mehltretter <kmehltretter@gmail.com>
Subject: Re: [PATCH] rv: Represent uninitialised and dying DA monitors
Date: Thu, 03 Dec 2026 15:19:49 +0100	[thread overview]
Message-ID: <8c22154d094f05c36e2907d16b3ef9931e406ecc.camel@redhat.com> (raw)
In-Reply-To: <085b03b4-ec33-4032-a50c-9774d4205d6e@linux.dev>

On Thu, 2026-12-03 at 02:15 +0800, Wen Yang wrote:
> Hi Gabriele,
> 
> Thanks, this is exactly what we need.
> We v9 series will rebase on top of it.
> 
> One question: started now guards the timer instead of monitoring, which
> was published with release/acquire. Should it follow the same pattern?
> 
> 	...
> 	smp_store_release(&da_mon->started, true);
> 	return smp_load_acquire(&da_mon->started);
> 
> Reviewed-by: Wen Yang <wen.yang@linux.dev>
> 

Hi Wen,

thanks for the review.

I'm still ruminating on this solution.
Certainly we need release/acquire semantics here too.

I'm a bit in doubt with the other reader of started: ha_monitor_init_env()

Here I'm trying to fix another potential race that runs double initialisation by
using the same started flag.
I got paranoid about it, but I now believe that if there cannot be concurrent
start events for the same monitors, this patch should solve that too.

That's already an assumption we have, though I probably need to make it more
explicit in a comment.

Thoughts?

Gabriele

      reply	other threads:[~2026-12-03 14:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-01  7:34 Gabriele Monaco
2026-12-01 15:36 ` Gabriele Monaco
2026-12-02 18:15 ` Wen Yang
2026-12-03 14:19   ` Gabriele Monaco [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=8c22154d094f05c36e2907d16b3ef9931e406ecc.camel@redhat.com \
    --to=gmonaco@redhat.com \
    --cc=kmehltretter@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-trace-kernel@vger.kernel.org \
    --cc=namcao@linutronix.de \
    --cc=rostedt@goodmis.org \
    --cc=wen.yang@linux.dev \
    /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®