mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Peter Zijlstra <peterz@infradead.org>
To: jim.cromie@gmail.com
Cc: Thomas Gleixner <tglx@kernel.org>, Ingo Molnar <mingo@redhat.com>,
	Borislav Petkov <bp@alien8.de>,
	Dave Hansen <dave.hansen@linux.intel.com>,
	x86@kernel.org, "H. Peter Anvin" <hpa@zytor.com>,
	Josh Poimboeuf <jpoimboe@kernel.org>,
	Jason Baron <jbaron@akamai.com>,
	Alice Ryhl <aliceryhl@google.com>,
	Steven Rostedt <rostedt@goodmis.org>,
	Ard Biesheuvel <ardb@kernel.org>,
	Andrew Morton <akpm@linux-foundation.org>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 4/7] jump_label: Add batching API for queued static key updates
Date: Sat, 5 Dec 2026 00:27:18 +0100	[thread overview]
Message-ID: <20261204232718.GO2883950@noisy.programming.kicks-ass.net> (raw)
In-Reply-To: <CAJfuBxxhVUZyTEBSPzkuek1rpQVxZLesPm6N7TPq+c9TjHTx8g@mail.gmail.com>

On Fri, Dec 04, 2026 at 12:18:30PM -0700, jim.cromie@gmail.com wrote:

>     Yes, that worked well -- I just posted v3 built around your
>     batch_owner / static_key_batch guard design, dropping the @apply
>     plumbing, *_queued() helpers, and STATIC_KEY_TRANS_DISABLE (-2).
> 
>     A few edge cases came up while wiring it up and testing with lockdep:
> 
>     1. Added batch_depth and a batch_owner == current fastpath before
>        cpus_read_lock() so nested batch guards and _cpuslocked() wrappers
>        don't self-deadlock or drop the outer batch early.

Urgh, that gets us firmly in recursive locking territory -- and that has
proven to be a painful place time and time again.

What sites actually 'need' this; and can't we fix that differently?

>     2. Moved key queueing to jump_label_queue_key() (handling 0-site keys)
>        with jump_label_flush_key() on revisits (e.g. "+p;-p"), plus
>        static_key_disable() falling through on -1 onto jump_label_mutex.

Its not immediately clear what you mean here; did you force a flush when
a second operation on a previously queued key arrives?

  parent reply	other threads:[~2026-12-04 23:27 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-29  7:44 [PATCH v2 0/7] jump_label, x86, dyndbg: Batch multi-key static branch updates Jim Cromie via B4 Relay
2026-11-29  7:44 ` [PATCH v2 1/7] x86/alternatives: Keep text-poke batch sorted on insert Jim Cromie via B4 Relay
2026-11-30 16:13   ` Steven Rostedt
2026-11-29  7:44 ` [PATCH v2 2/7] x86/jump_label: Sync arch_jump_label_transform_queue() with batch limit Jim Cromie via B4 Relay
2026-11-29  7:44 ` [PATCH v2 3/7] jump_label: Plumb bool apply through jump_label_update_key() Jim Cromie via B4 Relay
2026-11-29  7:44 ` [PATCH v2 4/7] jump_label: Add batching API for queued static key updates Jim Cromie via B4 Relay
2026-11-30 11:55   ` Peter Zijlstra
2026-11-30 13:51     ` Peter Zijlstra
     [not found]     ` <CAJfuBxxhVUZyTEBSPzkuek1rpQVxZLesPm6N7TPq+c9TjHTx8g@mail.gmail.com>
2026-12-04 23:27       ` Peter Zijlstra [this message]
2026-12-05  1:17         ` jim.cromie
2026-11-29  7:44 ` [PATCH v2 5/7] dyndbg: Use queued static-key batching in ddebug_change() Jim Cromie via B4 Relay
2026-11-29  7:44 ` [PATCH v2 6/7] dyndbg: Batch classmap param bit-changes into multi-query Jim Cromie via B4 Relay
2026-11-29  7:44 ` [PATCH v2 7/7] dyndbg: Hoist lock and static_key_batch across queries Jim Cromie via B4 Relay

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=20261204232718.GO2883950@noisy.programming.kicks-ass.net \
    --to=peterz@infradead.org \
    --cc=akpm@linux-foundation.org \
    --cc=aliceryhl@google.com \
    --cc=ardb@kernel.org \
    --cc=bp@alien8.de \
    --cc=dave.hansen@linux.intel.com \
    --cc=hpa@zytor.com \
    --cc=jbaron@akamai.com \
    --cc=jim.cromie@gmail.com \
    --cc=jpoimboe@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=rostedt@goodmis.org \
    --cc=tglx@kernel.org \
    --cc=x86@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®