mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [GIT PULL] ring-buffer: Updates for v7.4
@ 2026-10-22 20:18 Steven Rostedt
  2026-10-23 22:26 ` pr-tracker-bot
  0 siblings, 1 reply; 2+ messages in thread
From: Steven Rostedt @ 2026-10-22 20:18 UTC (permalink / raw)
  To: Linus Torvalds
  Cc: LKML, Masami Hiramatsu, Mathieu Desnoyers, Andrew Morton,
	Vincent Donnefort, David Carlier


Linus,

ring-buffer updates for v7.4:

- Add Vincent Donnefort as ring-buffer maintainer

  Vincent has been doing a lot of updates to the ftrace ring buffer lately.
  I'm going to start delegating updates for the ring buffer to him.

- Use RING_BUFFER_MIN_NR_PAGES instead of open coding the number 2

  Instead of using the number 2 as the minimum number of pages that a ring
  buffer may have, create and use a macro RING_BUFFER_MIN_NR_PAGES.

- Clean up the resize_disabled_checks

  There's duplication of code to check for resize disabled. Create a helper
  function rb_resize_disabled() and use that. Not only does it put the code
  in one place, it also removed a redundant check.

- Remove unnecessary cpumask_test_cpu checks

  The loop for_each_buffer_cpu(buffer, cpu) only loops over CPUs in the
  buffer->cpumask. There's no reason to test if the CPU is set in that same
  loop.

- Take cpus_read_lock() when changing the subbuf order

  A CPU coming on line for the first time allocates its CPU buffer. But
  if this happens while the subbuffer is being resized, it can cause an
  inconsistent state of subbufer sizes in the buffer. Add a cpus_read_lock()
  to ring_buffer_subbuf_order_set() to prevent this race.


Please pull the latest trace-ringbuffer-v7.4 tree, which can be found at:


  git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace.git
trace-ringbuffer-v7.4

Tag SHA1: 7e59f123fcd352799b04cc706463f8db0fbfd86e
Head SHA1: 453d0f47b174cac387af48d303c503b84f82212e


David Carlier (1):
      ring-buffer: Take cpus_read_lock() when changing the subbuf order

Steven Rostedt (1):
      ring-buffer: Add a MAINTAINERS category specific for the tracing ring-buffer

Vincent Donnefort (3):
      ring-buffer: Unify ring buffer minimum page calculations
      ring-buffer: Clean up resize_disabled checks
      ring-buffer: Remove unnecessary cpumask_test_cpu

----
 MAINTAINERS                       |  16 ++++++
 include/linux/ring_buffer.h       |   9 +++-
 kernel/trace/ring_buffer.c        | 102 ++++++++++++++++----------------------
 kernel/trace/simple_ring_buffer.c |   4 +-
 4 files changed, 68 insertions(+), 63 deletions(-)
---------------------------

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

end of thread, other threads:[~2026-10-23 22:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-22 20:18 [GIT PULL] ring-buffer: Updates for v7.4 Steven Rostedt
2026-10-23 22:26 ` 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®