mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Steven Rostedt <rostedt@goodmis.org>
To: Jaewon Jung <jaewon8868@gmail.com>
Cc: Masami Hiramatsu <mhiramat@kernel.org>,
	Mathieu Desnoyers <mathieu.desnoyers@efficios.com>,
	linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org
Subject: Re: [PATCH] tracing: Make event_enable_count_probe() count atomic
Date: Thu, 3 Dec 2026 08:33:00 -0500	[thread overview]
Message-ID: <20261203083300.7c042643@gandalf.local.home> (raw)
In-Reply-To: <20261203045851.2243395-1-jaewon8868@gmail.com>

On Thu,  3 Dec 2026 13:58:44 +0900
Jaewon Jung <jaewon8868@gmail.com> wrote:

> Concurrent callbacks race on the plain count read and decrement.  This can
> lose updates or turn 0 into -1 (unlimited).  Use atomic_long_t and cmpxchg
> for the decrement.

I'm curious, do you actually use this feature. It's been something I've
been wanting to deprecate.

-- Steve

  reply	other threads:[~2026-12-03 13:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-03  2:51 Jaewon Jung
2026-12-03  4:58 ` Jaewon Jung
2026-12-03 13:33   ` Steven Rostedt [this message]
2026-12-03 13:14 ` Jaewon Jung

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=20261203083300.7c042643@gandalf.local.home \
    --to=rostedt@goodmis.org \
    --cc=jaewon8868@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-trace-kernel@vger.kernel.org \
    --cc=mathieu.desnoyers@efficios.com \
    --cc=mhiramat@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

all inboxes | Powered by JetHome®