mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [GIT PULL] Rate-limit changes for v6.16
@ 2025-05-26  4:49 Paul E. McKenney
  2025-05-27 18:30 ` pr-tracker-bot
  0 siblings, 1 reply; 2+ messages in thread
From: Paul E. McKenney @ 2025-05-26  4:49 UTC (permalink / raw)
  To: torvalds; +Cc: linux-kernel, kernel-team, pmladek, akpm, john.ogness

Hello, Linus,

When the v6.15 merge window opens, please pull this rate-limit update from:

  git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git tags/ratelimit.2025.05.25a
  # HEAD: ba575cea29fd82a0e6836fefcd51db36f1ff8a92: ratelimit: Drop redundant accesses to burst (2025-05-08 16:13:27 -0700)

These have been subject to -next testing for more than a month, have had
five LKML postings, have been featured on LWN, and with one exception
have a full set of acks.  That exception is this:

48e864ae8657 ("random: Avoid open-coded use of ratelimit_state structure's ->missed field")

The change from this series is function-preserving and is incidental to
the random subsystem, but is necessary to the series, which is in turn
needed to avoid silent and false-positive drops of rate-limited printk()s.

----------------------------------------------------------------
lib/ratelimit: Reduce false-positive and silent misses

Changes
-------

* Reduce open-coded use of ratelimit_state structure fields.
* Convert the ->missed field to atomic_t.
* Count misses that are due to lock contention.
* Eliminate jiffies=0 special case.
* Reduce ___ratelimit() false-positive rate limiting (Petr Mladek).
* Allow zero ->burst to hard-disable rate limiting.
* Optimize away atomic operations when a miss is guaranteed.
* Warn if ->interval or ->burst are negative (Petr Mladek).
* Simplify the resulting code.

A smoke test and stress test have been created, but they are not yet ready
for mainline.  With luck, we will offer them for the v6.17 merge window.

----------------------------------------------------------------
Paul E. McKenney (17):
      ratelimit: Create functions to handle ratelimit_state internals
      random: Avoid open-coded use of ratelimit_state structure's ->missed field
      drm/i915: Avoid open-coded use of ratelimit_state structure's ->missed field
      drm/amd/pm: Avoid open-coded use of ratelimit_state structure's internals
      ratelimit: Convert the ->missed field to atomic_t
      ratelimit: Count misses due to lock contention
      ratelimit: Avoid jiffies=0 special case
      ratelimit: Allow zero ->burst to disable ratelimiting
      ratelimit: Force re-initialization when rate-limiting re-enabled
      ratelimit: Don't flush misses counter if RATELIMIT_MSG_ON_RELEASE
      ratelimit: Avoid atomic decrement if already rate-limited
      ratelimit: Avoid atomic decrement under lock if already rate-limited
      ratelimit: Simplify common-case exit path
      ratelimit: Use nolock_ret label to save a couple of lines of code
      ratelimit: Use nolock_ret label to collapse lock-failure code
      ratelimit: Use nolock_ret restructuring to collapse common case code
      ratelimit: Drop redundant accesses to burst

Petr Mladek (2):
      ratelimit: Reduce ___ratelimit() false-positive rate limiting
      ratelimit: Warn if ->interval or ->burst are negative

 drivers/char/random.c              |  9 +++--
 drivers/gpu/drm/amd/pm/amdgpu_pm.c | 11 +-----
 drivers/gpu/drm/i915/i915_perf.c   |  8 ++--
 include/linux/ratelimit.h          | 37 ++++++++++++++++---
 include/linux/ratelimit_types.h    |  5 ++-
 lib/ratelimit.c                    | 75 ++++++++++++++++++++++++++------------
 6 files changed, 98 insertions(+), 47 deletions(-)

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [GIT PULL] Rate-limit changes for v6.16
  2025-05-26  4:49 [GIT PULL] Rate-limit changes for v6.16 Paul E. McKenney
@ 2025-05-27 18:30 ` pr-tracker-bot
  0 siblings, 0 replies; 2+ messages in thread
From: pr-tracker-bot @ 2025-05-27 18:30 UTC (permalink / raw)
  To: Paul E. McKenney
  Cc: torvalds, linux-kernel, kernel-team, pmladek, akpm, john.ogness

The pull request you sent on Sun, 25 May 2025 21:49:53 -0700:

> git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git tags/ratelimit.2025.05.25a

has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/97851c601636a0e40f8237b83a6b70fc5e231e0c

Thank you!

-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/prtracker.html

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-05-27 18:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-05-26  4:49 [GIT PULL] Rate-limit changes for v6.16 Paul E. McKenney
2025-05-27 18:30 ` pr-tracker-bot

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®